Back to the main page
Can't find the answer? Ask
Submit Articles
Publish your articles and reach thousands of readers worldwide.
■ Welcome Guest, LogIn
■ Login with 
Category : Computers & Internet » Programming » .Net | Posted by : Viper | Posted on : 6/24/2010 | Updated on : 6/24/2010
Keywords : net, net, validaterequest, request, work, has, page, false, detected, value, doesnt, potentially, even, asp, dangerous, error, ctl00
ValidateRequest=“false” doesn’t work in Asp.Net 4
why ValidateRequest=“false” doesn’t work in Asp.Net 4 ?
i still get this error "A potentially dangerous Request.Form value was detected from the client (ctl00$cp1$dd2$tb1=" even if the page has the ValidateRequest=“false” header,
is this a bug in Asp.Net C# 4 ?


to fix this i just added  requestValidationMode="2.0"  to web.config file under the system.web section like this :

    <httpRuntime requestValidationMode="2.0" />

You have an answer to this question?
Answer this question as a guest or ( Login / Create an account )
Full name : e-mail :  * will not be displayed
Retype the picture text
Send your Answer

Other languages : Verkus in English English, Verkus en Français Français. Terms of use | Privacy Policy | Help © Verkus 2008-2010, All rights reserved.