protected void LoginButton_Click(object sender, EventArgs e) { if (Roles.IsUserInRole(LoginControl.UserName, "admin1")) { Response.Redirect("~/AdminPages/Administration.aspx"); } else if (Roles.IsUserInRole(LoginControl.UserName, "customer1")) { Response.Redirect("~/Customers/Customers.aspx"); } else if (Roles.IsUserInRole(LoginControl.UserName, "partner1")) { Response.Redirect("~/Partners/Partners.aspx"); } }