从客户端检测到潜在危险的Request.Form值(ctl00 $ ContentPlaceHolder1 $ RichTextBox ="TEST!"). [英] A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$RichTextBox="TEST!").

查看:384
本文介绍了从客户端检测到潜在危险的Request.Form值(ctl00 $ ContentPlaceHolder1 $ RichTextBox ="TEST!").的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在新项目中添加了tinymce3.5.7.它可以在本地服务器上准确运行,但是在联机状态下会产生以下错误.

从客户端检测到一个潜在危险的Request.Form值(ctl00 $ ContentPlaceHolder1 $ RichTextBox ="

TEST!

I added tinymce3.5.7 in my new project. it runs accurately in local server,but in online it produced the following error.

A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$RichTextBox="

TEST!

推荐答案

ContentPlaceHolder1
ContentPlaceHolder1


RichTextBox ="

TEST!

RichTextBox="

TEST!


似乎您的richtextbox控件正在生成HTML代码.它尝试将HTML值传递到服务器.默认情况下,这是不允许的.要允许它,您需要配置Web.config:
这是错误的:
It seems that your richtextbox control is generating HTML code. It tries to pass HTML value into server. By default, this is not allowed. To allow it, you need to configure your Web.config:
this is wrong:
<system.web>
    <httpruntime requestvalidationmode="2.0" />
</system.web>


这是正确的:


this is correct:

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


这篇关于从客户端检测到潜在危险的Request.Form值(ctl00 $ ContentPlaceHolder1 $ RichTextBox ="TEST!").的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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