I have usercontrol with couple of buttons in it, I wanted to use the user control in page and instead of displaying the button which is on usercontrol I wanted to click a button on the page which raises button click event on the usercontrol.
PageA_Button_Click(object sender, EventArgs e) should call UserControl_Button_Click(object sender, EventArgs e)
public partial class UserControls_DEMO : System.Web.UI.UserControl
{
public void UserControl_Button_Click(object sender, EventArgs e)
{
}
}
public partial class ASPXPAGE : System.Web.UI.Page
{
protected void PageA_Button_Click(object sender, EventArgs e)
{
//Call UserControl_Button_Click here
}
}