Ejemplo n.º 1
0
 private void ShowLession()
 {
     if (DDLgrade.SelectedValue != ""&&DDLterm.SelectedValue!="")
     {
         int Cobj =int.Parse( DDLgrade.SelectedValue);
         int Cterm = int.Parse(DDLterm.SelectedValue);
         LearnSite.BLL.Courses bll = new LearnSite.BLL.Courses();
         GVCourse.DataSource = bll.GetListLession(Cterm, Cobj);
         GVCourse.DataBind();
     }
 }
Ejemplo n.º 2
0
 private void ShowLession()
 {
     if (HttpContext.Current.Request.Cookies[LearnSite.Common.CookieHelp.teaCookieNname] != null)
     {
         if (Session["lessongrade"] != null && Session["lessonterm"] != null && Session["lessonhid"] != null)
         {
             int Cobj  = int.Parse(Session["lessongrade"].ToString());
             int Cterm = int.Parse(Session["lessonterm"].ToString());
             int Chid  = int.Parse(Session["lessonhid"].ToString());
             LearnSite.BLL.Courses bll = new LearnSite.BLL.Courses();
             GVCourse.DataSource = bll.GetListLession(Cterm, Cobj, Chid);
             GVCourse.DataBind();
         }
     }
 }