username@email.com
2025-05-15 6fe02a16e55f17e45a3997171e1b2284d45af25b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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();
        }
    }
}