private void BindData() { MessageBoxQuery messageBoxQuery = new MessageBoxQuery(); messageBoxQuery.PageIndex = this.pager.PageIndex; messageBoxQuery.PageSize = this.pager.PageSize; messageBoxQuery.Accepter = HiContext.Current.User.Username; DbQueryResult memberReceivedMessages = CommentBrowser.GetMemberReceivedMessages(messageBoxQuery); if (((DataTable)memberReceivedMessages.Data).Rows.Count <= 0) { memberReceivedMessages = CommentBrowser.GetMemberReceivedMessages(messageBoxQuery); } this.CmessagesList.DataSource = memberReceivedMessages.Data; this.CmessagesList.DataBind(); this.pager.TotalRecords = memberReceivedMessages.TotalRecords; }