我有一个aspx页面,在其中调用了一个包含tinymce编辑器的ascx用户控件。当我尝试保存数据时,出现了错误。
A potentially dangerous Request.Form value was detected from the client (UserControl1$TextBox1="
fgh
fghj
I already check A potentially dangerous Request.Form value was detected from the client
I tried:
web.config I set
<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
Please someone help me...