I have the Following method in Usercontrol.ascx
public void Flasmessage()
{
popupmessage2.Visible = true;
string strScript = "HideCtrl('" + popupmessage2.ClientID + "','15000')";
Page.ClientScript.RegisterStartupScript(
this.GetType(),
Guid.NewGuid().ToString(),
strScript,
true);
}
I need the following method to be called from another Page and another Usercontrol.ascx
Best Answer
You need to get a reference to the instance of the UserControl on your page, then call the method, like so: