private void BindData()
        {
            FriendExtensionQuery entity = new FriendExtensionQuery {
                PageIndex = this.pager.PageIndex,
                PageSize  = this.pager.PageSize,
                SortOrder = SortAction.Desc,
                SortBy    = "ExtensionId"
            };

            Globals.EntityCoding(entity, true);
            DbQueryResult result = ProductCommentHelper.FriendExtensionList(entity);

            this.reFriend.DataSource = result.Data;
            this.reFriend.DataBind();
            this.pager.TotalRecords = result.TotalRecords;
        }
        private void BindData()
        {
            FriendExtensionQuery entity = new FriendExtensionQuery {
                PageIndex = 1,
                PageSize  = 1,
                SortOrder = SortAction.Desc,
                SortBy    = "ExtensionId"
            };

            Globals.EntityCoding(entity, true);
            entity.ExtensionId = this.ExtensionId;
            DataTable data = new DataTable();

            data = (DataTable)ProductCommentHelper.FriendExtensionList(entity).Data;
            if (data.Rows.Count > 0)
            {
                this.txtName.Text = data.Rows[0]["ExensiontRemark"].ToString();
                this.hidpic.Value = data.Rows[0]["ExensionImg"].ToString();
            }
        }