Exemple #1
0
        //Chooses master page based on User Role
        protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);
            ChooseMaster choose = new ChooseMaster();

            MasterPageFile = choose.GetMaster();
        }
Exemple #2
0
        //Chooses master page based on User Role
        protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);
            ChooseMaster choose = new ChooseMaster();

            MasterPageFile = choose.GetMaster();

            if (User.IsInRole("Admin") || User.IsInRole("SuperUser"))
            {
                Response.Redirect("/dash/Admin/Notifications.aspx");
            }
            if (User.IsInRole("Teacher"))
            {
                Response.Redirect("/dash/WebForm1.aspx");
            }
        }