The error message states that a “potentially dangerous Request.Form value was detected…” and provides more details in the description as to exactly what occurred and how to change the behavior. For example:
Request validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can
disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs
in this case.
I tried setting Validate Request="False" but this does not work?
But this is not recommended unless you are very carefully looking at and filtering all user input coming in on that page. Is there another way to accomplish what you are trying to do? (I set ValidateRequest to false and the post ad feature
continues to work as expected.)
[This posting is provided "AS IS" with no warranties, and confers no rights.]
netnow
Member
45 Points
9 Posts
How do you allow Script tags in Description Text Box
Jun 21, 2006 05:41 AM|LINK
I am trying to allow javascript when adding ads in the description text box
<script src=www.mysite.com></script>
Does anyone know how to do this?
I keep getting this error
The error message states that a “potentially dangerous Request.Form value was detected…” and provides more details in the description as to exactly what occurred and how to change the behavior. For example:
Request validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.
I tried setting Validate Request="False" but this does not work?
I am a newbe, can anyone help me?
Jason Bishop
marcgel
Member
405 Points
76 Posts
Microsoft
Re: How do you allow Script tags in Description Text Box
Jun 24, 2006 12:09 AM|LINK
You can set ValidateRequest="false" in page directive.
http://msdn2.microsoft.com/en-us/library/ydy4x04a.aspx
But this is not recommended unless you are very carefully looking at and filtering all user input coming in on that page. Is there another way to accomplish what you are trying to do? (I set ValidateRequest to false and the post ad feature continues to work as expected.)