asp.net中的ck编辑器 [英] ck editor in asp.net

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

问题描述

如何将ck编辑器值插入sql数据库.我面临类似
的错误

How to insert ck editor value to sql database. i am facing error like

System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (article_body=<p><br />
weqweqe</p>

推荐答案

关闭ValidateRequest:

http://msdn.microsoft.com/en-us/library/system.web.configuration.pagessection.validaterequest.aspx [ ^ ]

请注意,在进行此更改后,您收到的输入对于XSS的安全性要差很多:

http://en.wikipedia.org/wiki/Cross-site_scripting [
turn off ValidateRequest:

http://msdn.microsoft.com/en-us/library/system.web.configuration.pagessection.validaterequest.aspx[^]

just be aware that the input you receive after this change will be a lot less safe with regards to XSS:

http://en.wikipedia.org/wiki/Cross-site_scripting[^]

With that in mind, I''d only consider turning it off at the individual page level, and only where and when you really need to and have no alternatives.


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

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