using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Web;
|
using System.Web.UI;
|
using System.Web.UI.WebControls;
|
using CY.Infrastructure.Query;
|
using CY.BLL.Promotion;
|
|
namespace CY.WebForm.Pages.Alliance
|
{
|
//吴辉
|
//软文推广链接
|
public partial class ArticleAllianceList : System.Web.UI.Page
|
{
|
Promotion_ArticleInfoBLL bll_Promotion_ArticleInfoBLL = null;
|
|
public ArticleAllianceList()
|
{
|
bll_Promotion_ArticleInfoBLL = new Promotion_ArticleInfoBLL();
|
}
|
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged;
|
if (!IsPostBack)
|
{
|
BindList();
|
}
|
}
|
|
private void BindList()
|
{
|
Pagination pa = new Pagination();
|
pa.PageSize = this.UCPager1.AspNetPager.PageSize;
|
pa.PageIndex = this.UCPager1.AspNetPager.CurrentPageIndex;
|
this.RepClientList1.DataSource = bll_Promotion_ArticleInfoBLL.SelectModelPage(pa);
|
this.RepClientList1.DataBind();
|
UCPager1.AspNetPager.RecordCount = pa.RecordCount;
|
}
|
|
protected void AspNetPager1_PageChanged(object src, EventArgs e)
|
{
|
BindList();
|
}
|
}
|
}
|