asp.net中针对textarea的潜在错误 [英] potential error in asp.net for textarea

查看:78
本文介绍了asp.net中针对textarea的潜在错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误

从客户端检测到一个潜在危险的Request.Form值(GetActivityText [1] =

acaac





i在页面中使用Validaterequest = false然后我得到上面的错误



请咨询

解决方案

你可以在你的网络配置文件中添加它

 <   system.web  >  
< httpruntime requestvalidationmode = 2.0 / >
< /system.web >


i get error as
A potentially dangerous Request.Form value was detected from the client (GetActivityText[1]="

acaac



i used Validaterequest=false in page but then to i get error as above

Pls advice

解决方案

you can add this in your web config file

<system.web>
        <httpruntime requestvalidationmode="2.0" />
    </system.web>


这篇关于asp.net中针对textarea的潜在错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆