Exemple #1
0
        protected void GridViewAvailbleModules_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            Label lblloggedInStudent = this.Master.FindControl("lblLoggedInUser") as Label;

            lblloggedInStudent.Text = Session["loggedInUser"].ToString();
            ClassModules availableModules = new ClassModules();

            availableModules.LoadStudentAvailableModules(GridViewAvailbleModules, lblloggedInStudent);
            GridViewAvailbleModules.PageIndex = e.NewPageIndex;
            GridViewAvailbleModules.DataBind();
        }
Exemple #2
0
 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();
         ClassModules availableModules = new ClassModules();
         availableModules.LoadStudentAvailableModules(GridViewAvailbleModules, lblloggedInStudent);
     }
 }