Пример #1
0
        void BindData()
        {
            SendedMessageQuery query = new SendedMessageQuery();

            query.PageIndex = this.pager.PageIndex;
            query.PageSize  = this.pager.PageSize;
            query.UserName  = HiContext.Current.User.Username;
            DbQueryResult sendedMessages = CommentsHelper.GetSendedMessages(query);

            this.messagesList.DataSource = sendedMessages.Data;
            this.messagesList.DataBind();
            this.pager.TotalRecords = sendedMessages.TotalRecords;
        }