title: Keeping radio/checkbox values on postback?
body: <p>There's is something I don't get with ASP objects. I have a button in a update panel. On the same page, I have a checkbox, a radiobutton and a textbox (outside the update panel). When I click on my button, I access all those three objects. The textbox is able to keep the his text value. But the radio/checkbox always return false when I check there checked state. </p>
  
  <p>Of course, my form is more complicated than what I just said. It involves Javascript and usercontrols. I managed to use the Request.Form to get the value of my checkbox/radio, but I don't find this solution to be neat enought. </p>
  
  <p>Someone can help me to find why radio/check wont return there real checked state ? Thank you in advance!</p>
  
  <p>Edit :
  I've tried to following in a simple aspx page and it seems to works :</p>
  
  <pre><code> &lt;asp:CheckBox runat="server" ID="checkbox" /&gt;
  
      &lt;asp:RadioButton runat="server" ID="radio1" GroupName="radio" CssClass="testRadio" /&gt;
      &lt;asp:RadioButton runat="server" ID="radio2" GroupName="radio" CssClass="testRadio" /&gt;
  
      &lt;asp:TextBox runat="server" ID="text" /&gt;
  
  
      &lt;asp:ScriptManager runat="server"&gt;
      &lt;/asp:ScriptManager&gt;
  
      &lt;asp:UpdatePanel runat="server"&gt;
          &lt;ContentTemplate&gt;
              &lt;asp:Button runat="server" ID="test_but" OnClick="test_click" /&gt;
  
          &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>And then I can access all the properties into test_click(). So there is something in my real forms that breaks everything else. I've tried to add a little javascript into my test page, and it seems to works too.</p>