title: C# .NET WebForms CKEditor to SQL potentially dangerous Request.Form value
body: <p>I have the dreaded <code>A potentially dangerous Request.Form value was detected from the client</code></p>
  
  <p>CKEDitor jquery instance. Initiating CKEditor onto a multiline asp:textbox. On submit I'm using ADO.net to save out to SQL database.</p>
  
  <p>I know I can use pages <code>validateRequest="false"</code> but I also know that will leave me vulnerable. I know what boxes are trying to save the HTML, things keep saying to "HTML Encode" some how. I have tried the config - <code>config.htmlEncodeOutput = true;</code> and I have tried <code>Server.HTMLEncode</code> on the text value. Both of which rendering the same error.</p>
  
  <p>Help</p>