I am having such a problem with this. When I uncheck my checkbox I want the CheckedChanged event to fire but it wont.
this is in my InitalizeComponent
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
this.cbSystem.CheckedChanged += new EventHandler(cbSystem_CheckedChanged);
}
this is my event
private void cbSystem_CheckedChanged(object sender, EventArgs e)
{
Response.Write("WooHoo!!!!");
}
here is the HTML for the control
<asp:CheckBox id="cbSystem" runat="server" CssClass="fdata" Checked="True" Text="This is a test" AutoPostBack="True">
This event is never called.
What am I doing wrong please help.
pietaster,
A jury consists of twelve persons chosen to decide who has the better lawyer.
- Robert Frost (1874 - 1963)