title: Getting a dropdownlist to check a checkbox in asp.net/C#
body: <pre><code>&lt;input runat ="server" type ="checkbox" id="helprequest" /&gt;     
  &lt;label for="helprequest"&gt;Help request&lt;/label&gt;
  &lt;asp:DropDownList ID="options" runat="server" OnSelectedIndexChanged="checkHelpRequest"&gt;
      &lt;asp:ListItem Text="Windows"&gt;&lt;/asp:ListItem&gt;
      &lt;asp:ListItem Text="Macintosh"&gt;&lt;/asp:ListItem&gt;
      &lt;asp:ListItem Text="Linux"&gt;&lt;/asp:ListItem&gt;
      &lt;asp:ListItem Text="Other"&gt;&lt;/asp:ListItem&gt;
  &lt;/asp:DropDownList&gt;
  </code></pre>
  
  <p>In my codebehind, I have</p>
  
  <pre><code>protected void checkHelpRequest(object sender, EventArgs e)
  {
      helprequest.Checked = true;
  }
  </code></pre>
  
  <p>But when I select something on the dropdownlist, the checkbox, does not get marked as checked, how do I get the checkbox to appear as checked when I change the index on a dropdownlist?</p>