Hi, i have an aspx page on which there is a search text box & value is passed through queryString to Search.aspx on which the search results are displayed in grid. Now, if i enter a value like "<test/>" in it then it shows "potentially dangerous request.form...." exception.
One solution to this problem is to set ValidateRequest="false" but is there any other solution because i need to keep validateRequest = true
I also tried server.UrlEncode but it doen't work untill i set ValidateRequest = "false" on my page. Also is there any way to set ValidateRequest for masterPage or do we need to set in web.config only.
Any help would be appreciated.
...
Go to the complete details ...