protected void Page_PreInit(object sender, EventArgs e)
if (Membership.GetUser() == null) //check the user weather user is logged in or not
this.Page.MasterPageFile = "~/General.master";
this.Page.MasterPageFile = "~/myMaster.master";
2016© C# Corner. All contents are copyright of their authors.
C# Corner. All contents are copyright of their authors.