A potentially dangerous Request.QueryString value was detected from the client when sending html markup from jquery post call to asp.net page
I m making an ajax call using jQuery to an ASP.NET page which acts as my ajax server page to save the data which i am sending to it in the query string. In the ASP.NET page when i am trying to read the querystring i am getting this error: A potentially dangerous Request.QueryString value was detected from the client... I have set the ValidateRequest="false" in my page. Dont want to set it for all the pages. So did it in page level instead of config level: var content = "<h3>Sample header</h3><p>sample para</p>" content = encodeURIComponent(content); var url = "../Lib/ajaxhandler.aspx?mode