コード例 #1
0
 public override void DataBind()
 {
     BLL.Tao.CourseModule coursesBll = new BLL.Tao.CourseModule();
     query.PageIndex = this.AspNetPager1.CurrentPageIndex;
     query.PageSize = this.AspNetPager1.PageSize;
     DataTable dt = coursesBll.GetModuleList(query);
     this.AspNetPager1.RecordCount = this.iTotal;
     this.grd_ModuleList.DataSource = dt;
     this.grd_ModuleList.DataBind();
 }
コード例 #2
0
ファイル: CoursesList.ascx.cs プロジェクト: bookxiao/orisoft
        public override void DataBind()
        {
            //DataList显示方式
            this.DataList_Course.RepeatDirection = this.RepeatDirection;
            //DataList显示列数
            this.DataList_Course.RepeatColumns = this.RepeatColumns;

            BLL.Tao.CourseModule coursesBll = new BLL.Tao.CourseModule();
            query.PageIndex = this.AspNetPager1.CurrentPageIndex;
            query.PageSize = this.AspNetPager1.PageSize;
            DataTable dt = coursesBll.GetCourseList(query);
            this.AspNetPager1.RecordCount = this.ITotal;
            this.DataList_Course.DataSource = dt;
            this.DataList_Course.DataBind();
        }
コード例 #3
0
ファイル: CourseHandle.cs プロジェクト: bookxiao/orisoft
 private void IsExistCourse(HttpRequest Request, HttpResponse Response)
 {
     if (!string.IsNullOrEmpty(Request.Form["courseId"]))
     {
         BLL.Tao.CourseModule manage = new BLL.Tao.CourseModule();
         int cid = int.Parse(Request.Form["courseId"]);
         if (manage.Exists(cid))
         {
             Response.Write("Succ");
             Response.End();
         }
         else
         {
             Response.Write("Faile");
             Response.End();
         }
     }
     else
     {
         Response.Write("Faile");
         Response.End();
     }
 }