{
if (Membership.GetUser() == null) //check the user weather user is logged in or not
this.Page.MasterPageFile = "~/General.master";
else
this.Page.MasterPageFile = "~/myMaster.master";
}
we can change the content of master page from inherited page too like below
Master.FindControl("nameLbl").Visible = true;
No comments:
Post a Comment