Example #1
0
        protected void AdminPanel_CheckedChanged(object sender, EventArgs e)
        {
            User user = (User)Session["User"];

            if (AdminPanel.Checked)
            {
                UserUtil.AdminPanelToggle(user, 1);
            }
            else
            {
                UserUtil.AdminPanelToggle(user, 0);
            }
        }