コード例 #1
0
ファイル: Detail.aspx.cs プロジェクト: dalinhuang/labms
        protected void GetReplies()
        {
            int postID = int.Parse(Request.QueryString["postID"]);

            LabMS.BLL.PostReply postReply = new LabMS.BLL.PostReply();

            DataSet ds = postReply.GetList(" [PosterID] = " + postID);

            AspNetPager.RecordCount = ds.Tables[0].Rows.Count;

            HandleReply(ds);
        }
コード例 #2
0
ファイル: Detail.aspx.cs プロジェクト: dalinhuang/labms
        /// <summary>
        /// �󶨻ظ�
        /// </summary>
        protected void BindReply()
        {
            int postID = int.Parse(Request.QueryString["id"]);

            LabMS.BLL.PostReply postReply = new LabMS.BLL.PostReply();

            DataSet ds = postReply.GetList(" [PosterID] = " + postID);

            ds = HandleReply(ds);

            RepeaterPostReply.DataSource = ds.Tables[0].DefaultView;
            RepeaterPostReply.DataBind();
        }