加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – TinyMCE编辑器:从客户端检测到一个潜在危险的Request.For

发布时间:2020-12-15 07:57:48 所属栏目:百科 来源:网络整理
导读:我有aspx,因为我正在使用tinymce编辑器调用ascx用户控件.当我试图保存数据时,我收到错误.. 从客户端检测到一个潜在危险的Request.Form值(UserControl1 $TextBox1 =“fghfghj 我已经检查了A potentially dangerous Request.Form value was detected from the
我有aspx,因为我正在使用tinymce编辑器调用ascx用户控件.当我试图保存数据时,我收到错误..

从客户端检测到一个潜在危险的Request.Form值(UserControl1 $TextBox1 =“fghfghj

我已经检查了A potentially dangerous Request.Form value was detected from the client

我试过了:

web.config我设置

<pages validateRequest="false">
<httpRuntime requestValidationMode="2.0" requestPathInvalidCharacters=""/>
<compilation debug="true" targetFramework="4.0">
<@page validateRequest="false">
Server.HtmlEncode(TextBox1.Text)
encoding: "xml" // This is solving the prob. but Text is converting in HTML tag I don't want that

请有人帮帮我……

解决方法

将其添加到httpRuntime
< httpRuntime requestValidationMode="2.0"  />

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读