title: How to have checkbox as objectDataSource update parameter?
body: <p>In ObjectDataSource my checkbox is always ignored. My update method always receives NULL. What am I doing wrong here?</p>
  
  <p>Thanks.</p>
  
  <pre><code>&lt;asp:CheckBox ID="CheckBoxSort" runat="server" Checked="true" /&gt;
  </code></pre>
  
  <p>CheckBox is on its own. It is not contained in any other .net controls.
  ....</p>
  
  <pre><code>&lt;asp:ObjectDataSource ID="odsProfileItems" runat="server" SelectMethod="GetProfileItemsForCategory" TypeName="Valero.WEB.BO.StoreProfile.ProfileItemService"             UpdateMethod="UpdateProfileItem"&gt;
      &lt;SelectParameters&gt;
          &lt;asp:Parameter Name="CategoryID" Type="Int32" /&gt;
      &lt;/SelectParameters&gt;
      &lt;UpdateParameters&gt;
          &lt;asp:ControlParameter Name="IsSorting" ControlID="CheckBoxSort" PropertyName="Checked" /&gt;
      &lt;/UpdateParameters&gt;
  &lt;/asp:ObjectDataSource&gt;
  </code></pre>