Example #1
0
        //绑定评论信息
        private void BindMessage()
        {
            int       id = Convert.ToInt32(ViewState["ActID"]);
            DataTable dt = CommentsService.SelectComments(id);

            if (dt != null && dt.Rows.Count > 0)
            {
                MessageListView.DataSource = dt;
                MessageListView.DataBind();
            }
        }
Example #2
0
        //绑定留言信息
        private void BindMessage()
        {
            //int id = Convert.ToInt32(ViewState["VideoID"]);
            int       id = int.Parse(Request.QueryString["id"]);
            DataTable dt = LeavewordsService.SelectLeavewords(id);

            if (dt != null && dt.Rows.Count > 0)
            {
                MessageListView.DataSource = dt;
                MessageListView.DataBind();
            }
        }