asp.net中的ck编辑器错误消息 [英] ck Editor in asp.net error message

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

问题描述

我在网页上使用ck编辑器.我使用com.Parameters.AddWithValue("@ article_body",CKEditorControl1.Text)插入ck编辑器的值;和数据类型使用ntext.但是它显示了如下错误:


I am using ck editor in my web page. I insert the value of ck editor using com.Parameters.AddWithValue("@article_body", CKEditorControl1.Text); and datatype use ntext. But it shown an error like:


A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$CKEditorControl1="<p>
Hi This is a t...").

Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. To allow pages to override application request validation settings, set the requestValidationMode attribute in the httpRuntime configuration section to requestValidationMode="2.0". Example: <httpRuntime requestValidationMode="2.0" />. After setting this value, you can then disable request validation by setting validateRequest="false" in the Page directive or in the <pages> configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. For more information, see http://go.microsoft.com/fwlink/?LinkId=153133.

Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (ctl00$ContentPlaceHolder1$CKEditorControl1="<p>
Hi This is a t...").

Source Error:


[No relevant source lines]

Source File: c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\catest\f052c349\bc98a877\App_Web_tqvcnc4d.4.cs



请任何人能帮助我...预先感谢



Please any one can help me...Thanks in advance

推荐答案

ContentPlaceHolder1
ContentPlaceHolder1


CKEditorControl1 =" p < httpRuntime requestValidationMode =" / < 页面 > 配置部分.但是,在这种情况下,强烈建议您的应用程序显式检查所有输入.有关更多信息,请参见http://go.microsoft.com/fwlink/?LinkId=153133. 异常详细信息:System.Web.HttpRequestValidationException:从客户端检测到潜在危险的Request.Form值(ctl00
CKEditorControl1="<p> Hi This is a t..."). Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. To allow pages to override application request validation settings, set the requestValidationMode attribute in the httpRuntime configuration section to requestValidationMode="2.0". Example: <httpRuntime requestValidationMode="2.0" />. After setting this value, you can then disable request validation by setting validateRequest="false" in the Page directive or in the <pages> configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. For more information, see http://go.microsoft.com/fwlink/?LinkId=153133. Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (ctl00


ContentPlaceHolder1
ContentPlaceHolder1


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

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