IT Community - Software Programming, Web Development and Technical Support

what is the use of validaterequest?

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-02-2008, 05:40 AM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 332
KiruthikaSambandam is on a distinguished road
Default what is the use of validaterequest?

Hi all,


what is the use of validaterequest?

What is the meaning of validateRequest=true ?

What is the meaning of validateRequest=false ?

Thx
Kiruthika
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-02-2008, 05:54 AM
krishnakumar krishnakumar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 206
krishnakumar is on a distinguished road
Smile Re: what is the use of validaterequest?

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 07:35 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0