I have user control A, and user control B. How can I register an event in user control B, so that it gets fired?. It seems like control A is doing something and not letting the event in user control B get fired.
MyControlA.ascx.cs
MyControlB.ascx.cs
//need to fire this when checkbox of this user control is clicked.
//but it seems MyControlA.ascx.cs which uses user control B is causing something that
//does not allow this to get fired.
protected void myCheckBox_CheckedChanged(object sender, EventArgs e)
{
//SOME CODE HERE
}
Register to the event of user control B in the webpage that uses it.
Register to the event of user control A in the webpage that uses it.
Then, when control A fires the event, your webpage will catch it. Once it catches it, fire the event in user control B.
Use your webpage as the middle class that combines both user controls together.