Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Potentially dangerous Request.Form value

Status
Not open for further replies.

dpdg

Programmer
May 23, 2005
148
US
I've been getting this error while testing a new app I am developing. What does this mean?
Code:
Server Error in '/code' Application.
--------------------------------------------------------------------------------

A potentially dangerous Request.Form value was detected from the client (grdCode:_ctl4:txtCode="...nt" %> <script runat="serve..."). 

Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.

What can I do to eliminate it?
 
You can set the page validation tag to stop it appearing e.g.
Code:
<%@ Page validateRequest="false"  %>

If you simply enter your error message in google you will find lots of sites that would have explained this to you, one of which is:



____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top