Title:A potentially dangerous Request.Form value was detected from the client错误解决办法
DATA:2014-08-28 17:05:23 VISITORS:Tags:常见问题 作者:快宜优网络 来源:www.k1u.com.cn
.net程序编辑出现以下错误:
A potentially dangerous Request.Form value was detected from the client
这是由于内容中包含html标签造成的。
解决方法是:
在web.config文件中添加
< system.web>
< httpRuntime requestValidationMode="2.0" />
< /system.web>
注:<后面的空格要删除