protected void GridViewStudentModules_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            ClassStudents loadGradeDetails = new ClassStudents();

            loadGradeDetails.LoadStudentGradesToStudentGrade(GridViewStudents, GridViewStudentModules);
            GridViewStudentModules.PageIndex = e.NewPageIndex;
            GridViewStudentModules.DataBind();
        }
        protected void GridViewStudentObtainedGrades_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            Label lblloggedInStudent = this.Master.FindControl("lblLoggedInUser") as Label;

            lblloggedInStudent.Text = Session["loggedInUser"].ToString();
            ClassStudents loadObtainedGrades = new ClassStudents();

            loadObtainedGrades.LoadStudentGradesToStudentGrade(GridViewStudentObtainedGrades, lblloggedInStudent);
            GridViewStudentObtainedGrades.PageIndex = e.NewPageIndex;
            GridViewStudentObtainedGrades.DataBind();
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["loggedInUser"] == null)
     {
         Response.Redirect("login.aspx");
     }
     else
     {
         Label lblloggedInStudent = this.Master.FindControl("lblLoggedInUser") as Label;
         lblloggedInStudent.Text = Session["loggedInUser"].ToString();
         ClassStudents loadObtainedGrades = new ClassStudents();
         loadObtainedGrades.LoadStudentGradesToStudentGrade(GridViewStudentObtainedGrades, lblloggedInStudent);
         loadObtainedGrades.CalculateStudentAverageScore(GridViewStudentObtainedGrades, lblAverageScore);
     }
 }
        protected void GridViewStudents_SelectedIndexChanged(object sender, EventArgs e)
        {
            ClassStudents loadGradeDetails = new ClassStudents();

            loadGradeDetails.LoadStudentGradesToStudentGrade(GridViewStudents, GridViewStudentModules);
        }