In login page load event u write code ? that is correct ? in login page load even u get
bool isAdministrator = Roles.IsUserInRole(User.Identity.Name, "Administrator");
bool isMembers= Roles.IsUserInRole(User.Identity.Name, "Members");
or in button click u get ?
Try like this,remove if form else part,i mean if and else ,
if (isAdministrator)
Response.Redirect("~/Admin/SiteAdmin.aspx");
else (isMembers)
Response.Redirect("~/Members/Dashboard.aspx");
or try like this,put one button,in that button click even u write that code and check.
or
in login page load event u write this code only and check
Response.Redirect("~/Admin/SiteAdmin.aspx");