On MasterPage i have function below, how call this function on test.ascx form on button click.
public void HideBtnLogin()
{
string session = Session["userCode"] as string;
if (String.IsNullOrEmpty(session))
{
lbtnSignInTop.Visible = true;
lbtnSignUp.Visible = true;
}
else
{
lbtnSignInTop.Visible = false;
lbtnSignUp.Visible = false;
}
}