//绑定评论信息 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(); } }
//绑定留言信息 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(); } }