Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Working with validateRequest=false
Message
De
23/04/2008 14:55:09
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Titre:
Working with validateRequest=false
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01312712
Message ID:
01312712
Vues:
59
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform