I have a checkbox named cbSelct. In a botton_click event i wrote
cbSelect.Checked=true
is the above code in the code behind page causes for a cbSelected_CheckedChanged event?
I created a new website and place a checkbox named cbSelect and a button.
protected void cbSelect_CheckedChanged(object sender, EventArgs e)
{
Response.Write("testMessage ");
}
protected void Button1_Click(object sender, EventArgs e)
{
cbSelect.Checked = !cbSelect.Checked;
}
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.