954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Server Error: A potentially dangerous Request.Form value was detected from the client

hi all,

while uploading javascript for the google analytic code on my live site i am getting below error.

Server Error in '/' Application.
A potentially dangerous Request.Form value was detected from the client ((ctl00$ContentPlaceHolder1$txtanalyaticcode=")

. After setting this value, you can then disable request validation by setting validateRequest="false" in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. For more information, see http://go.microsoft.com/fwlink/?LinkId=153133 .

Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$txtanalyaticcode="

it works fine in local as well as staging site but it gives error on live site. i googled for the same error and found solution to write ValidateRequest="false" and EnableEventValidation=false in my page. but it doen't working.


Please do some needfull help.

krunalk
Newbie Poster
4 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
 

This type of error occur when you try to post some Html code or other scripting code in the field which is not assigned to fetch such values... Plz check the nature of Input and proceed..

Regards,
Vishal

geniusvishal
Junior Poster in Training
58 posts since Jan 2012
Reputation Points: 9
Solved Threads: 4
 

Hi Vishal,

Thanks for the reply. i have just found my solution.your are also right it was problem due to "<" and

krunalk
Newbie Poster
4 posts since Feb 2012
Reputation Points: 10
Solved Threads: 0
 

Plz mark the post as solved as it could be helpful to other viewers... Click the marked as solved link in the bottom part of the post....

Regards

geniusvishal
Junior Poster in Training
58 posts since Jan 2012
Reputation Points: 9
Solved Threads: 4
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: