username@email.com
2025-05-12 ae6e40362a745caef9ead36f81f38313fb8c2c66
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
48
49
50
51
52
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY.BLL;
using CY.Infrastructure.Query;
 
namespace CY.WebForm.Pages.Alliance
{
    //吴辉
    //网站联盟-常见问题列表
    public partial class AskedQuestionInfoList : System.Web.UI.Page
    {
        Info_AllianceBLL bll_Info_AllianceBLL = null;
        Info_AllianceBasicBLL bll_Info_AllianceBasicBLL = null;
 
        //初始化
        public AskedQuestionInfoList()
        {
            bll_Info_AllianceBLL = new Info_AllianceBLL();
            bll_Info_AllianceBasicBLL = new Info_AllianceBasicBLL();
        }
 
        //页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged;
            if (!IsPostBack)
            {
                BindList();
            }
        }
        //绑定数据
        private void BindList()
        {
            Pagination pa1 = new Pagination();
            pa1.PageSize = UCPager1.AspNetPager.PageSize;
            pa1.PageIndex = UCPager1.AspNetPager.CurrentPageIndex;
            this.RepClientList1.DataSource = bll_Info_AllianceBLL.SelectModelPage(pa1, "常见问题");
            this.RepClientList1.DataBind();
            UCPager1.AspNetPager.RecordCount = pa1.RecordCount;
        }
 
        //分页事件
        protected void AspNetPager1_PageChanged(object src, EventArgs e)
        {
            BindList();
        }
    }
}