private void ShowLessonDetails()
    {
        int Cid =Int32.Parse( Request.QueryString["Cid"].ToString());
        LearnSite.BLL.Courses csbll = new LearnSite.BLL.Courses();
        Repeater1.DataSource = csbll.GetCourseDetail(Cid);
        Repeater1.DataBind();

        LearnSite.BLL.Mission msbll = new LearnSite.BLL.Mission();
        Repeater2.DataSource = msbll.GetMissionDetails(Cid);
        Repeater2.DataBind();

        LearnSite.BLL.Flection fcbll = new LearnSite.BLL.Flection();
        Repeater3.DataSource = fcbll.GetListCid(Cid);
        Repeater3.DataBind();
    }
Exemple #2
0
    private void ShowLessonDetails()
    {
        int Cid = Int32.Parse(Request.QueryString["Cid"].ToString());

        LearnSite.BLL.Courses csbll = new LearnSite.BLL.Courses();
        Repeater1.DataSource = csbll.GetCourseDetail(Cid);
        Repeater1.DataBind();

        LearnSite.BLL.Mission msbll = new LearnSite.BLL.Mission();
        Repeater2.DataSource = msbll.GetMissionDetails(Cid);
        Repeater2.DataBind();

        LearnSite.BLL.Flection fcbll = new LearnSite.BLL.Flection();
        Repeater3.DataSource = fcbll.GetListCid(Cid);
        Repeater3.DataBind();
    }
 private void ShowThink()
 {
     if (Request.QueryString["Cid"] != null)
     {
         int Fcid =Int32.Parse( Request.QueryString["Cid"].ToString());
         LearnSite.BLL.Flection flection = new LearnSite.BLL.Flection();
         if (flection.ExistsFcid(Fcid))
         {
             Repeater1.DataSource = flection.GetListCid(Fcid);
             Repeater1.DataBind();
             LearnSite.BLL.Courses cs=new LearnSite.BLL.Courses();
             LabelTitle.Text = cs.GetTitle(Fcid);
         }
         else
         {
             string url = "~/Lessons/thinkadd.aspx?Cid=" + Fcid ;
             Response.Redirect(url, false);
         }
     }
 }
Exemple #4
0
 private void ShowThink()
 {
     if (Request.QueryString["Cid"] != null)
     {
         int Fcid = Int32.Parse(Request.QueryString["Cid"].ToString());
         LearnSite.BLL.Flection flection = new LearnSite.BLL.Flection();
         if (flection.ExistsFcid(Fcid))
         {
             Repeater1.DataSource = flection.GetListCid(Fcid);
             Repeater1.DataBind();
             LearnSite.BLL.Courses cs = new LearnSite.BLL.Courses();
             LabelTitle.Text = cs.GetTitle(Fcid);
         }
         else
         {
             string url = "~/Lessons/thinkadd.aspx?Cid=" + Fcid;
             Response.Redirect(url, false);
         }
     }
 }