[英]Potentially dangerous Request.Form value was detected
i am using mce editor in a user control and added ValidateRequest="false"
in page directive on which i have used that control then also I am getting "A potentially dangerous Request.Form
value was detected" error. 我在用户控件中使用mce编辑器,并在使用该控件的页面指令中添加了
ValidateRequest="false"
,然后我也收到“检测到潜在危险的Request.Form
值”错误。 How to solve this? 如何解决呢?
In order for the ValidateRequest="false" attribute to be applied, you must add the following entry 为了应用ValidateRequest =“ false”属性,必须添加以下条目
<httpRuntime requestValidationMode="2.0" />
to your web.config. 到您的web.config。
If you are using .NET 4 you may need to change your web config too. 如果您使用的是.NET 4,则可能还需要更改Web配置。
<httpRuntime requestValidationMode="2.0" /> in web.config.
When you change page like validateRequest="false" make sure you are HTML encoding strings. 当您更改诸如validateRequest =“ false”之类的页面时,请确保您使用的是HTML编码字符串。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.