예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["studentsignin"] != null)
     {
         student = Session["studentsignin"] as _Student;
         if (!IsPostBack)
         {
             GetData();
         }
         // Check If Profile Updated
         if (Session["success"] != null)
         {
             pnlResponseSuccess.Visible = true;
             Session.Remove("success");
             Session["success"] = null;
         }
         else if (Session["fail"] != null)
         {
             pnlResponseFail.Visible = true;
             Session.Remove("fail");
             Session["fail"] = null;
         }
     }
     else
     {
         Response.Redirect("/Home");
     }
 }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["studentsignin"] != null)
     {
         student = Session["studentsignin"] as _Student;
         GetData();
     }
     else
     {
         Response.Redirect("/Home");
     }
 }
예제 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["studentsignin"] != null)
     {
         listSupervisor = supervisor.GetAll();
         student        = Session["studentsignin"] as _Student;
         if (!IsPostBack)
         {
             GetData();
         }
     }
     else
     {
         Response.Redirect("/Home");
     }
 }
예제 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["studentsignin"] != null)
     {
         student = Session["studentsignin"] as _Student;
         thesis.Student.StudentId = student.StudentId;
         thesis = thesis.GetByStudentId();
         if (!IsPostBack)
         {
             GetData();
         }
     }
     else
     {
         Response.Redirect("/Home");
     }
 }
예제 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["studentsignin"] != null)
            {
                student = Session["studentsignin"] as _Student;
                GetData();
            }
            else
            {
                Response.Redirect("/Home");
            }

            if (Session["success"] != null)
            {
                pnlResponseSuccess.Visible = true;
                Session["success"]         = null;
                Session.Remove("success");
            }
            else
            {
                pnlResponseFail.Visible = false;
            }
            if (Session["fail"] != null)
            {
                pnlResponseFail.Visible = true;
                Session["fail"]         = null;
                Session.Remove("fail");
            }
            else
            {
                pnlResponseFail.Visible = false;
            }
            if (student.MeetingStatus())
            {
                btnRequestMeeting.Enabled = true;
            }
            else
            {
                btnRequestMeeting.Enabled = false;
            }
        }
예제 #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            pnlResponseFail.Visible = false;
            if (Session["studentsignin"] != null)
            {
                if (Request.Url.AbsolutePath.Contains("Student/Submission/Downlaod/"))
                {
                    if (RouteData.Values["id"] != null)
                    {
                        DownloadFile(Convert.ToInt64(RouteData.Values["id"]));
                        //redirect back
                    }
                }
                else
                {
                    student = Session["studentsignin"] as _Student;
                    thesis.Student.StudentId = student.StudentId;
                    thesis = thesis.GetByStudentId();

                    if (thesis != null)
                    {
                        GetData();
                    }
                    else
                    {
                        Response.Redirect("/Student/Thesis");
                    }

                    if (Session["review-notadded"] != null)
                    {
                        pnlResponseFail.Visible = true;
                        Session.Remove("review-notadded");
                    }
                }
            }
            else
            {
                Response.Redirect("/Home");
            }
        }
예제 #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["supervisorsignin"] != null)
     {
         if (RouteData.Values["id"] != null)
         {
             supervisor = Session["supervisorsignin"] as _Supervisor;
             student    = student.GetById(Convert.ToInt64(RouteData.Values["id"]));
             if (!IsPostBack)
             {
                 GetData();
             }
         }
         else
         {
             Response.Redirect("/Supervisor/Student");
         }
     }
     else
     {
         Response.Redirect("/Home");
     }
 }
예제 #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["studentsignin"] != null)
            {
                student = Session["studentsignin"] as _Student;

                // Check If Password Updated
                if (Session["success"] != null)
                {
                    pnlResponseSuccess.Visible = true;
                    Session.Remove("success");
                }
                else if (Session["fail"] != null)
                {
                    pnlResponseFail.Visible = true;
                    Session.Remove("fail");
                }
            }
            else
            {
                Response.Redirect("/Home");
            }
        }
예제 #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     // Check User is sign in
     if (Session["adminsignin"] != null)
     {
         if (RouteData.Values["id"] != null)
         {
             student.StudentId = Convert.ToInt64(RouteData.Values["id"]);
             if (!IsPostBack)
             {
                 student = student.GetById();
                 GetData();
             }
         }
         else
         {
             Response.Redirect("Admin/Student");
         }
     }
     else
     {
         Response.Redirect("/Home");
     }
 }