Assume that you are validating the user. Based on logged in user you can change the master pages.
protected void Page_PreInit(object sender, EventArgs e)
{
if(user == "Admin")
{
this.page.MasterPageFile = "~/Admin.Master";
}
else if(user == "User")
{
this.page.MasterPageFile = "~/User.Master";
}
}