I have a page with a button and a textbox, when a input “<string>” in the text box and then I press the button I got this error: A potentially dangerous Request.Form value was detected from the client (TextBox1=”“<string>”“).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is a security feature of ASP.NET, which prevents a user to submit potentially dangerous code like script blocks.
You can disable this by setting the
validateRequestattribute of the Page directive tofalseor disable it in web.config:
But be careful! As I said, this is a security feature!
You can read more about it here: http://www.asp.net/learn/whitepapers/request-validation