I realized that right now. The first thing you need to do is go to the event in the login properties of the control system, double click on the loggedIn line, it will direct you to the cs page. Then what you need to do is
protected void Login1_LoggedIn(object sender, EventArgs e) { { if (Roles.IsUserInRole(Login1.UserName, "Admin")) Response.Redirect("~/Admin/Default.aspx"); else if (Roles.IsUserInRole(Login1.UserName, "User")) Response.Redirect("~/User/Default.aspx"); } }
Then be sure to specify the destination URL of the login control for the URL so that you want to redirect the user after logging in
source share