Ejemplo n.º 1
0
    private void GetPostPageWise(int pageIndex)
    {
        posts = new PostBLL();
        string catID = RouteData.Values["Id"].ToString();

        rptPostItem.DataSource = posts.GetListPostsByCategoryIDPageWise(pageIndex, PageSize, Convert.ToInt32(catID));
        rptPostItem.DataBind();
        this.PopulatePager(rptPager, posts.CountListPostsByCategoryIDPageWise(Convert.ToInt32(catID)), pageIndex, PageSize);
    }