private void AllDataBind() { course.CourseID = int.Parse(courseid); course.UserID = user.UserID; course.GetCourseInfo(); Teacher_TA = course.GetCourseTeacher(); Modify_Intro.Text = course.Introduction; T_DataList.DataSource = course.GetCourseTeacher().Tables["TeacherName"]; T_DataList.DataBind(); A_DataList.DataSource = course.GetCourseTeacher().Tables["AssistantName"]; A_DataList.DataBind(); alladvice = course.GetCourseAdvice(); AspNetPager.RecordCount = alladvice.Tables["CourseAdvice"].Rows.Count; AllAdvice_DataList.DataSource = FilterTable(alladvice.Tables["CourseAdvice"], AspNetPager.StartRecordIndex - 1, AspNetPager.EndRecordIndex - 1); AllAdvice_DataList.DataBind(); }