title: checkbox - asp.net
body: <p>I have a checkbox named cbSelct. In  a botton_click event i wrote</p>
  
  <p><code>cbSelect.Checked=true</code></p>
  
  <p>is the above code in the code behind page causes for a cbSelected_CheckedChanged event?</p>
  
  <p>I created a new website and place a checkbox named cbSelect and a button.</p>
  
  <pre><code>protected void cbSelect_CheckedChanged(object sender, EventArgs e)
  {
      Response.Write("testMessage ");
  }
  protected void Button1_Click(object sender, EventArgs e)
  {
      cbSelect.Checked = !cbSelect.Checked;
  }
  </code></pre>
  
  <p>I put a break point inside cbSelect_CheckedChanged event. Now according to the answers i got below, i understand that , if i clicked button it should break on cbSelect_CheckedChanged function. But i think cbSelect_CheckedChanged event is  not firing  while clicking the button.  </p>