How to create master page for different user?
i want to create master page for admin that refer only process which is handle by he.another master page design for regular client
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Amit ChoudharyRank #145 · 15.8K reputationPosted Apr 27, 2011, 9:05 AM EDT
in the page Page_PreInit event, just check the user role and depending on that you can assign the corresponding master page. It should be something like
void Page_PreInit(Object sender, EventArgs e) { MembershipUser user = Membership.GetUser(Login1.UserName); if(Roles.IsUserInRole(user.UserName,"Administrator")) { this.MasterPageFile = "AdminMaster.master"; } else { this.MasterPageFile = "ClientMaster.master"; } }