I have used a checkbox and a button in my demopage. In checkbox AutopostBack property is false and I have used a server side event checkbox_checkedchanged() on
<asp:CheckBox ID="CheckBox1" runat="server"
oncheckedchanged="CheckBox1_CheckedChanged" /><asp:Button ID="Button1" runat="server"
Text="Button" />
codebehind
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
Response.Write("checked");
}
protected void Page_Load(object sender, EventArgs e)
{
}
Now when I click the button(in debug mode )first it go to pageload and then CheckBox1_CheckedChanged event is fired .
I want the explanation.that instead of enabling viewstate why the checkbox event is firing ?