protected void Page_Load(object sender, EventArgs e) { if (User.Identity.IsAuthenticated == false) { Response.Redirect("~/240578/Default.aspx"); } if (User.IsInRole("Update Profile") == false && User.IsInRole("Admin") == false) { Response.Redirect("~/240578/AdminHome.aspx"); } objMemberMaster = new BOMemberMaster(); objBALMemberMaster = new BALMemberMaster(); if (!Page.IsPostBack) { if (Session["Usercode"] == null) { Response.Redirect("~/240578/Default.aspx"); } else if (Session["Usercode"].ToString() == "BI250241") { txtMemberCode.Text = ""; InformationPanel.Visible = false; } } }
protected void Page_Load(object sender, EventArgs e) { if (User.Identity.IsAuthenticated == false) { Response.Redirect("~/19111973/Default.aspx"); } if (User.IsInRole("Change User Password") == false && User.IsInRole("Admin") == false) { Response.Redirect("~/19111973/AdminHome.aspx"); } objMemberMaster = new BOMemberMaster(); objBALMemberMaster = new BALMemberMaster(); if (Session["Usercode"] == null) { Response.Redirect("~/User/Default.aspx"); } }