Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Working with validateRequest=false
Message
From
23/04/2008 14:55:09
 
 
To
All
General information
Forum:
ASP.NET
Category:
Web forms
Title:
Working with validateRequest=false
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01312712
Message ID:
01312712
Views:
58
All my Web forms have by default validateRequest=true. So, this enables a security that an HTML tag cannot be included in a field. When that happens, .NET doesn't go into the regular events and fires only Page_Unload() followed by Page_Error(). The message is:

"A potentially dangerous Request.Form value was detected from the client"

When that happens, I would like to redirect to a custom page saying something about it. But, .NET doesn't make Request and other objects like that available. So, how can I redirect to a page if I cannot get a handle on Response?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform