protected void Page_Load(object sender, EventArgs e)
    {
        Master.ShowLiControl(this.Page, "liFragment2");
        DalOperationAboutBbs dalOperationAboutBbs = new DalOperationAboutBbs();
        DataSet dsCourses = dalOperationAboutBbs.GetAllForumsList();
        foreach (DataRow dr0 in dsCourses.Tables["3"].Rows)
        {

            ht0.Add(dr0["courseNo"].ToString().Trim(), dr0["topicsCount"].ToString());
        }

        foreach (DataRow dr1 in dsCourses.Tables["4"].Rows)
        {

            ht1.Add(dr1["courseNo"].ToString().Trim(), dr1["postIdCount"].ToString());
        }

        foreach (DataRow dr2 in dsCourses.Tables["5"].Rows)
        {
            ht2.Add(dr2["courseNo"].ToString().Trim(), dr2["postUserName"].ToString());
            ht3.Add(dr2["courseNo"].ToString().Trim(), dr2["updateTime"].ToString());
        }

        foreach (DataRow dr3 in dsCourses.Tables["6"].Rows)
        {
            ht4.Add(dr3["courseNo"].ToString().Trim(), dr3["todayTopicsCount"].ToString());
        }

        foreach (DataRow dr4 in dsCourses.Tables["7"].Rows)
        {
            ht5.Add(dr4["courseNo"].ToString().Trim(), dr4["todayPostsCount"].ToString());
        }

        foreach (DataRow dr6 in dsCourses.Tables["8"].Rows)
        {
            ht6.Add(dr6["courseNo"].ToString().Trim(), dr6["updateTime"].ToString().Trim());
        }

        this.dlstpic.DataSource = dsCourses.Tables["2"];

        this.dlstpic.DataBind();
    }
    protected void DatalistBind(string term)
    {
        DalOperationAboutBbs dalOperationAboutBbs = new DalOperationAboutBbs();
        DataSet dsCourses = new DataSet();

        if ("当前学期" == term)
        {
            tags = "当前学期";
            dsCourses = dalOperationAboutBbs.GetAllForumsList();
        }
        else
        {
            //Response.Write(term);
           // Response.End();
            tags = CommonUtility.ChangeTermToString(term);
            dsCourses = dalOperationAboutBbs.GetAllForumsList(term);
        }
        //if (fragmentFlag.Equals("1"))
        //{

            foreach (DataRow dr0 in dsCourses.Tables["3"].Rows)
            {

                ht0.Add(dr0["courseNo"].ToString().Trim(), dr0["topicsCount"].ToString());
            }

            foreach (DataRow dr1 in dsCourses.Tables["4"].Rows)
            {

                ht1.Add(dr1["courseNo"].ToString().Trim(), dr1["postIdCount"].ToString());
            }

            foreach (DataRow dr2 in dsCourses.Tables["5"].Rows)
            {
                ht2.Add(dr2["courseNo"].ToString().Trim(), dr2["postUserName"].ToString());
                ht3.Add(dr2["courseNo"].ToString().Trim(), dr2["updateTime"].ToString());
            }

            foreach (DataRow dr3 in dsCourses.Tables["6"].Rows)
            {
                ht4.Add(dr3["courseNo"].ToString().Trim(), dr3["todayTopicsCount"].ToString());
            }

            foreach (DataRow dr4 in dsCourses.Tables["7"].Rows)
            {
                ht5.Add(dr4["courseNo"].ToString().Trim(), dr4["todayPostsCount"].ToString());
            }

            foreach (DataRow dr6 in dsCourses.Tables["8"].Rows)
            {
                ht6.Add(dr6["courseNo"].ToString().Trim(), dr6["updateTime"].ToString().Trim());
            }

            this.dlstAboutCourses.DataSource = dsCourses.Tables[0];
            this.dlstAboutCourses.DataBind();

        //}
        /**
        if (fragmentFlag.Equals("2"))
        {
            this.dlstpic.DataSource = dsCourses.Tables["2"];

            this.dlstpic.DataBind();
        }
        if (fragmentFlag.Equals("3"))
        {
            this.dlstAboutOther.DataSource = dsCourses.Tables[1];
            this.dlstAboutOther.DataBind();
        }
        if (fragmentFlag.Equals("4"))
        {
            DalOperationPatch dalpa = new DalOperationPatch();

            UserCookiesInfo user = BllOperationAboutUser.GetUserCookiesInfo();
            string src = dalpa.GetAvatar(user.userNo, user.userType);
            ltavatar.Text = "<img src=\"" + src + "\">";
        }*/
    }