Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to take action on Potentially Dangerous
Message
De
22/05/2006 10:52:14
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
22/05/2006 00:13:30
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01123870
Message ID:
01123945
Vues:
10
>In a data entry form, the client has entered some encoded HTML characters. Those are not dangerous because they are for the French characters. But, the interface rejects them as soon as posted. The message is:
>
>A potentially dangerous Request.Form value was detected from the client...
>
>When looking at the calling chain, there is no way to take action on that. How can this be accomplished?

Michel,

There is a setting called ValidateRequest that you can set to turn this feature on and off. The setting is in Machine.config, web.config, and can be set in the @ Page directive.

There is not an event hook for this, but it throws an HttpRequestValidationException that you can intercept in a Try/Catch block. I'm not too sure where to put the Try/Catch. You can also look for the error in the Global.asax Application_Error event.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform