Reputation: 11
I am Getting this error
A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$txtEmbed="<embed src='http://a...").
when i am opening a modalpopup extender on link button click and in code behind i am assigning the textbox
value="<embed src='http://auddia.com/player-viral.swf' height='20' width='200' allowscriptaccess='always' flashvars='volume=100&autostart=false&file=http://auddia.com/Audios/audioStream_1299222864888_19.flv&plugins=viral-1d'/>
and also i set the ValidateRequest="false"
in the page directive's. and in code behind i also use HttpUtility.HtmlEncode
. but again and again i am facing this error
"A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$txtEmbed="<embed src='http://a...").".
Please help me ASAP.
Upvotes: 1
Views: 4375
Reputation: 32107
<system.web>
<httpRuntime requestValidationMode="2.0" />
</system.web>
Upvotes: 0
Reputation: 31761
Try adding this to your web.config.
<configuration>
<system.web>
<httpRuntime requestValidationMode="2.0" />
</system.web>
</configuration>
Upvotes: 3