Back to the main page
Can't find the answer? Ask
Submit Articles
Publish your articles and reach thousands of readers worldwide.
Publish
■ Welcome Guest, LogIn
Create a new account
ValidateRequest=“false” doesn’t work in Asp.Net 4
by Viper on 6/24/2010, Posted in Computers & Internet » Programming » .Net
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 ?



Answer question
Answers
■ By Viper on 6/24/2010

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

<system.web>
    ...
    <httpRuntime requestValidationMode="2.0" />
    ...
</system.web>

You have an answer to this question?
You can answer this question anonymously or ( Login / Create an account )
Image Captcha
Retype the picture text
Send your Answer

net, net, validaterequest, request, work, has, page, false, detected, value, doesnt, potentially, even, asp, dangerous, error, ctl00
Similar questionsLatest questions
Other languages : Verkus in English English, Verkus en Français Français. Terms of use | Privacy Policy | Help © Verkus 2008-2010, All rights reserved.