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.