title: Sharepoint webpart with enableEventValidation=false
body: <p>I have a sharepoint webpart and I use below controls:</p>
  
  
  
  <pre><code>&lt;asp:DropDownList runat="server" ID="ddlCategory"&gt;
  &lt;/asp:DropDownList&gt;
  
  &lt;asp:ListBox runat="server" ID="ddlHSESubCategory" SelectionMode="Multiple"&gt;
  &lt;/asp:ListBox&gt;
  </code></pre>
  
  <p>I will be setting options later using jquery ajax call.  when page is post back, I get below error:</p>
  
  <pre><code>Event validation is enabled using &lt;pages enableEventValidation="true"/&gt;
  in configuration or &lt;%@ Page EnableEventValidation="true" %&gt; in a page.
  </code></pre>
  
  <p>Since I am building webpart, I can not set enableEventValidation=false since I do not have access to pages directive, and this webpart can be inserted to any page.</p>
  
  <p>how do I overcome this ?</p>