Ejemplo n.º 1
0
    /// <summary>
    /// 加载绑定
    /// </summary>
    public void BindLoad()
    {
        int DataCount = RoomTypeBLL.CountNumber(strWhere);                                                                                                            //共多少条记录
        int hPageSize = (DataCount % Convert.ToInt32(HCount.Value)) != 0 ? DataCount / Convert.ToInt32(HCount.Value) + 1 : DataCount / Convert.ToInt32(HCount.Value); //共多少页

        HPageSize.Value        = DataCount.ToString();
        HAllPage.Value         = hPageSize.ToString();
        this.RpNews.DataSource = RoomTypeBLL.PageSelectRoomType(Convert.ToInt32(HCount.Value), Convert.ToInt32(HNowPage.Value), strWhere, "Rt_Id", "asc");
        this.RpNews.DataBind();
    }