Exemple #1
0
 private void CoursesLimit()
 {
     if (Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname] != null)
     {
         string Hid = tcook.Hid.ToString();
         LearnSite.BLL.Courses course = new LearnSite.BLL.Courses();
         int Cobj  = Int32.Parse(DDLgrade.SelectedValue);
         int Cterm = Int32.Parse(DDLterm.SelectedValue);
         GVCourse.DataSource = course.GetLimitHidList(Cobj, Cterm, Int32.Parse(Hid));
         if (Session[Hid + "pageindex"] != null)
         {
             GVCourse.PageIndex = Int32.Parse(Session[Hid + "pageindex"].ToString());
         }
         GVCourse.DataBind();
     }
 }
Exemple #2
0
    private void CourseList()
    {
        string Hid = tcook.Hid.ToString();

        LearnSite.BLL.Courses course = new LearnSite.BLL.Courses();
        string Sgrade = DDLgrade.SelectedValue;

        if (LearnSite.Common.WordProcess.IsNum(Sgrade))
        {
            int grade = Int32.Parse(Sgrade);
            int term  = Int32.Parse(Session["term"].ToString());
            int Chid  = Int32.Parse(Hid);
            GVCourse.DataSource = course.GetLimitHidList(grade, term, Chid);
            if (Session[Hid + "pageindex"] != null)
            {
                GVCourse.PageIndex = Int32.Parse(Session[Hid + "pageindex"].ToString());
            }
            GVCourse.DataBind();
        }
    }