I have aspx in that I am calling a ascx user control in that i am using tinymce editor. When I am trying to save data i am getting the error..
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...