I was getting error \"A potential dangerous request\" .. in Web Form application I have tried with \"validatepage=false\" and \"\" then i tried Server.HtmlEncode so it is sa
you can use <%= value %> which will not encode the value.
or you can implement your own version of HTML.Raw
Html.Raw returns an IHtmlString instance which is almost same as string but ASP.net doesn't encode IHtmlString.
Simple function to replicate HTML.Raw()
///
/// Stops asp.net from encoding the source HTML string.
///
///
///
public static IHtmlString HTMLRaw(string source)
{
return new HtmlString(source);
}