title: Disable hidden field validation
body: <p>I've got an hiddenfield filled with HTML which is used for a modal pop up box at page load.
  How ever, on postback the content of the hiddenfield are giving exception:</p>
  
  <pre><code>A potentially dangerous Request.Form value was detected from the client (ctl00$MainContentCP$hfContent="&lt;div&gt;
  </code></pre>
  
  <p>
  
  <p>I'm aware of the method were you could disable the validation for the whole page with:</p>
  
  <pre><code>validateRequest="false"
  </code></pre>
  
  <p>But since this page got some textfields I want to protect from scripting attacks this might not be the right solution.</p>
  
  <p>Can I somehow disable the validation ONLY for the hiddenfield?</p>
  
  <p>Code causing exception:</p>
  
  <pre><code>  &lt;asp:HiddenField ID="hfContent" runat="server" /&gt;
  
    if (!Page.IsPostBack)
    {
          Pages pages = new Pages();
          hfContent.Value = pages.getPageById(14).PageContent; //this
    }
  </code></pre>