Freigeben über


RequestValidation Error in ASP.NET

While working with ASP.NET 2.0, if you try to put some XML text in a textbox or an invalid email in a textbox, then you get following error, when you submit the page.

This occurs becuase the request is being validated by the server when you submit it. To avoid this error, you have to add following line to your web.config file inside the section :

<pages validateRequest="false">

So, when you get this error, try this solution.

Comments

  • Anonymous
    September 01, 2006
    The comment has been removed
  • Anonymous
    September 04, 2006
    Well said. thanks for pointing
  • Anonymous
    December 10, 2006
    The comment has been removed