protected void Page_Load(object sender, EventArgs e) { userMgr = ContextBoundObject.GetOwinContext().GetUserManager <ApplicationUserManager>(); roleMgr = ContextBoundObject.GetOwinContext().Get <ApplicationRoleManager>(); }
protected void Page_Load(object sender, EventArgs e) { /* if (!Request.IsSecureConnection) * { * string url = ConfigurationManagger.AppSetings["UnSeurePath"] + "CreateRole.aspx"; + Response.Redirect(url); + }*/ var ctx = ContextBoundObject.GetOwinContext(); createRolesandUsers(); }