protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request["courseNo"] == null || termtag == string.Empty || classID == string.Empty)
            {
                Javascript.GoHistory(-1, Page);
                return;
            }
        }

        //获得课程的基本信息
        UserCookiesInfo User = BllOperationAboutUser.GetUserCookiesInfo();
        DalOperationAboutCourses DalOperationAboutCourses = new DalOperationAboutCourses();
        if(User.userType==3)
        {
            DalOperationAboutCourses.UpdateCoursesAttention(courseNo, classID, termtag, User.userNo);
        }
        dsCourse = DalOperationAboutCourses.GetCourseInfoTeacherAndAssistant(courseNo,classID,termtag);

        string ltlStringCourseName = string.Empty;
        string ltlStringLessonTimeAndAddress = string.Empty;

        for (int i = 0; i < dsCourse.Tables[0].Rows.Count; i++)
        {
            ltlStringCourseName = dsCourse.Tables[0].Rows[i]["courseName"].ToString();
            ltlStringLessonTimeAndAddress = dsCourse.Tables[0].Rows[i]["lessonTimeAndAddress"].ToString();
        }
        courseName = ltlStringCourseName;
        if (ltlStringCourseName != string.Empty)
        {
            ltlCourseName.Text = ltlStringCourseName;
        }
        if (ltlStringLessonTimeAndAddress != string.Empty)
        {
            ltlLessonTimeAndAddress.Text = ltlStringLessonTimeAndAddress;
        }

        //绑定任课教师数据
        string ltlStringTeacherName = string.Empty;

        for (int i = 0; i < dsCourse.Tables["1"].Rows.Count; i++)
        {
            ltlStringTeacherName += "<a href=\"/Common/ViewTeacherInfo.aspx?keepThis=true&email=" + dsCourse.Tables["1"].Rows[i]["emailAddress"].ToString().Trim() + "&TB_iframe=true&height=300&width=600\" title=\"查看教师信息\" class=\"thickbox\">" + dsCourse.Tables["1"].Rows[i]["teacherName"].ToString().Trim() + "</a>&nbsp;&nbsp;";
        }

        if (ltlStringTeacherName != string.Empty)
        {
            ltlTeacherName.Text = ltlStringTeacherName;
        }

        //绑定助教数据
        string ltlStringAssistantName = string.Empty;

        for (int i = 0; i < dsCourse.Tables["2"].Rows.Count; i++)
        {
            ltlStringAssistantName += "<a href=\"/Common/ViewTeacherInfo.aspx?keepThis=true&email=" + dsCourse.Tables["2"].Rows[i]["emailAddress"].ToString().Trim() + "&TB_iframe=true&height=300&width=600\" title=\"查看助教信息\" class=\"thickbox\">" + dsCourse.Tables["2"].Rows[i]["assistantName"].ToString().Trim() + "</a>&nbsp;&nbsp;";
        }

        if (ltlStringAssistantName != string.Empty)
        {
            ltlAssistantName.Text = ltlStringAssistantName;
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (courseNo==string.Empty || termtag == string.Empty || classID == string.Empty)
        {
            Javascript.GoHistory(-1, Page);
            return;
        }

        if (!IsPostBack)
        {
            UserCookiesInfo User = BllOperationAboutUser.GetUserCookiesInfo();
            //获得课程的基本信息
            DalOperationAboutCourses DalOperationAboutCourses = new DalOperationAboutCourses();

            if (User.userType == 3)
            {
                DalOperationAboutCourses.UpdateCoursesAttention(courseNo, classID, termtag, User.userNo);
            }
            dsCourse = DalOperationAboutCourses.GetCourseInfoTeacherAndAssistant(courseNo,classID,termtag);

            string ltlStringCourseName = string.Empty;
            string ltlStringLessonTimeAndAddress = string.Empty;

            for (int i = 0; i < dsCourse.Tables[0].Rows.Count; i++)
            {
                ltlStringCourseName = dsCourse.Tables[0].Rows[i]["courseName"].ToString();
                ltlStringLessonTimeAndAddress = dsCourse.Tables[0].Rows[i]["lessonTimeAndAddress"].ToString();
            }
            courseName = ltlStringCourseName;
            if (ltlStringCourseName != string.Empty)
            {
                ltlCourseName.Text = ltlStringCourseName;
            }
            if (ltlStringLessonTimeAndAddress != string.Empty)
            {
                ltlLessonTimeAndAddress.Text = ltlStringLessonTimeAndAddress;
            }

            //绑定任课教师数据
            string ltlStringTeacherName = string.Empty;

            for (int i = 0; i < dsCourse.Tables["1"].Rows.Count; i++)
            {
                ltlStringTeacherName += dsCourse.Tables["1"].Rows[i]["teacherName"].ToString() + "&nbsp;&nbsp;";
            }

            if (ltlStringTeacherName != string.Empty)
            {
                ltlTeacherName.Text = ltlStringTeacherName;
            }

            //绑定助教数据
            string ltlStringAssistantName = string.Empty;

            for (int i = 0; i < dsCourse.Tables["2"].Rows.Count; i++)
            {
                ltlStringAssistantName += dsCourse.Tables["2"].Rows[i]["assistantName"].ToString() + "&nbsp;&nbsp;";
            }

            if (ltlStringAssistantName != string.Empty)
            {
                ltlAssistantName.Text = ltlStringAssistantName;
            }
        }
    }