I have the following code in “a.aspx.cs”:
public void Flasmessage(String message)
{
popupmessage2.Visible = true;
string strScript = "HideCtrl('" + popupmessage2.ClientID + "','15000')";
Page.ClientScript.RegisterStartupScript(
this.GetType(),
Guid.NewGuid().ToString(),
strScript,
true);
}
I need to call it from “b.aspx.cs”.
Put the method in some common class and call it from both aspx pages.