private void BindData()
        {
            int num;
            ReceivedMessageQuery query = new ReceivedMessageQuery();

            query.PageIndex = pager.PageIndex;
            query.PageSize  = pager.PageSize;
            query.SortBy    = messagesList.SortOrderBy;
            if (!string.IsNullOrEmpty(base.Request.QueryString["MessageStatus"]))
            {
                query.MessageStatus      = (MessageStatus)int.Parse(base.Request.QueryString["MessageStatus"]);
                statusList.SelectedValue = query.MessageStatus;
            }
            if (int.TryParse(base.Request.QueryString["IsRead"], out num))
            {
                query.IsRead = new bool?(Convert.ToBoolean(num));
            }
            query.UserName = "******";
            if (messagesList.SortOrder.ToLower() == "desc")
            {
                query.SortOrder = SortAction.Desc;
            }
            DbQueryResult receivedMessages = NoticeHelper.GetReceivedMessages(query);

            messagesList.DataSource = receivedMessages.Data;
            messagesList.DataBind();
            pager.TotalRecords  = receivedMessages.TotalRecords;
            pager1.TotalRecords = receivedMessages.TotalRecords;
        }