This is a discussion on what is the use of validaterequest? within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi all, what is the use of validaterequest? What is the meaning of validateRequest=true ? What is the meaning of ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, Validate Request is used for Securing Your Code To validate input and never output it directly to the browser, A form of protection that ASP.NET 1.1 provides is page validation. This is done by adding a ValidateRequest attribute to the page or in the web.config. By default ValidateRequest is set to true to ensure secure code. Validation can occur at a page level, for example: <%@ Page ... validateRequest="true" %> Or by default in the web.config: <system.web> <pages validateRequest="true" /> </system.web> With request validation in place, if have the code in the above examples in place, and someone were to enter in script into your app, a similar error to the one below would be displayed. Server Error in '/xssapp' Application.
__________________ Krishnakumar.S Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily |
![]() |
| Thread Tools | |
| Display Modes | |
| |