Beispiel #1
0
 void bindRepeater()
 {
     //第一行Repeater
     this.Repeater1row.DataSource = BLL.GoodPagerBLL.PagerRowByKey(_key, _page, 1);
     this.Repeater1row.DataBind();
     //第二行rep
     Repeater2row.DataSource = BLL.GoodPagerBLL.PagerRowByKey(_key, _page, 2);
     Repeater2row.DataBind();
     //第三行
     Repeater3row.DataSource = BLL.GoodPagerBLL.PagerRowByKey(_key, _page, 3);
     Repeater3row.DataBind();
 }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //第一行索引为0
         Repeater1row.DataSource = BLL.GoodPagerBLL.PagerIndexPage(0);
         Repeater1row.DataBind();
         //1
         //第2行索引为1
         Repeater2row.DataSource = BLL.GoodPagerBLL.PagerIndexPage(1);
         Repeater2row.DataBind();
         //第三行 索引2
         Repeater3row.DataSource = BLL.GoodPagerBLL.PagerIndexPage(2);
         Repeater3row.DataBind();
         YC_Website web = BLL.AdminWebSiteManager.selectLastOne();
         banners = web.Lunboimgurl.Split('|');
         _title  = web.Wname;
     }
 }