title: Turn off request validation programmatically
body: <p>I have a control that I'm writing where I want to turn off .NET's inbuilt request validation that prevents XSS attacks and similiar sort of nasties.</p>
  
  <p>The control allows the owner of a web-site to adjust the content on that page. They can potentially enter markup if they want to. Since it's their site to edit, they must be able to stick whatever they want on there.</p>
  
  <p>I'm wondering if it is possible to disable this validation programmatically? </p>
  
  <p>The only way I can find to do it is either by shutting off request validation completely in the web.config or by using a page directive. For various reasons, I can't have this control in another page - so that option is out.</p>