title: how to switch between checkboxes. If checkbox1 is checked. uncheck checkbox2
body: <p>I have a Survey-style web page with a series of checkboxes "yes/no" with a Submit button at the end. I would like to uncheck box2 when box1 is selected.   </p>
  
  <pre><code>    protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
      {
  
          if (CheckBox1.Checked == true)
          {
            CheckBox2.Enable = false;
          }
      }
  
      public void Submit_Click(object sender, EventArgs e)
      {
  
      //Question1 - Checkbox1
  
          if (CheckBox1.Checked == true)
          {
  
              SqlConnection con = new SqlConnection("");
              String sql = "UPDATE INQUIRY2 set Question1 = @str WHERE email = @email AND base = @base;";
              ...
          }
  </code></pre>