protected void Page_Load(object sender, EventArgs e)
        {
            securityHelper = new SecurityHelper();
            securityHelper.CheckSecurity();

            if (securityHelper.IsLoggedIn)
            {
                userLi.InnerText = "Logged in as: " + securityHelper.DisplayName;
                logLi.InnerText = "Log out";
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            securityHelper = new SecurityHelper();

            securityHelper.CheckSecurity();
            if (!securityHelper.IsLoggedIn || securityHelper.UserType == 1)
            {
                Response.Redirect("Login.aspx");
            }
            getAssignments();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            securityHelper = new SecurityHelper();

            securityHelper.CheckSecurity();
            if (!securityHelper.IsLoggedIn || securityHelper.UserType == 1)
            {
                Response.Redirect("Login.aspx");
            }
            PopulateHomeworkTable();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            securityHelper = new SecurityHelper();

            securityHelper.CheckSecurity();
            if (!securityHelper.IsLoggedIn || securityHelper.UserType == 2)
            {
                Response.Redirect("Login.aspx");
            }
            else
            {
                SubjectCB.DataSource = subjects;
                SubjectCB.DataBind();
                DeadlinePicker.Value = DateTime.Now.ToString();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            securityHelper = new SecurityHelper();

            securityHelper.CheckSecurity();
            if (!securityHelper.IsLoggedIn || securityHelper.UserType == 2)
            {
                Response.Redirect("Login.aspx");
            }

            if (!IsPostBack)
            {
                PopulateTimesCB();
                Calendar.SelectedDate = DateTime.Now.Date;
            }

            GetAllTutoringTimesByTeacher();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            Service1Client client = new Service1Client();
            securityHelper = new SecurityHelper();

            securityHelper.CheckSecurity();
            if (!securityHelper.IsLoggedIn || securityHelper.UserType == 1)
            {
                Response.Redirect("Login.aspx");
            }

            PopulateTeacherCB();
            PopulateSubjectCB();
            if (TeacherCB.SelectedIndex > 0)
            {
                GetAllTutoringTimesByTeacher();
                GenerateTableRows(tts);
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     securityHelper = new SecurityHelper();
     securityHelper.CheckSecurity();
     if (securityHelper.UserType == 1)
     {
         childMenu.Visible = false;
         teacherMenu.Visible = true;
     }
     else if(securityHelper.UserType == 2)
     {
         teacherMenu.Visible = false;
         childMenu.Visible = true;
     }
     else
     {
         teacherMenu.Visible = true;
         childMenu.Visible = true;
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     securityHelper = new SecurityHelper();
 }