I have questions about events in ASP.NET. I added an event "OnCheckedChanged" that does not get triggered until a Button event is initiated. Is there any way to trigger the "OnCheckedChanged" event immediately when the checkbox is selected like a client side event? For example, when the checkbox is selected, then call server method CheckBox1_CheckedChanged.
<asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="CheckBox1_CheckedChanged" />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click1" Text="Button" /></div>
public void CheckBox1_CheckedChanged(object sender, EventArgs e)
DateTime todaysdate = DateTime.Now;
TextBox2.Text = todaysdate.ToString();