Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         BLLmessage bllmessage = new BLLmessage();
         int        result     = bllmessage.message_state();
         AspNetPager1.RecordCount = result;
         AspNetPager1.PageSize    = 5;
         binddata();
     }
 }
Пример #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //BLLmessage bllmessage = new BLLmessage();
     //DataSet ds = bllmessage.select();
     //DataList1.DataSource = ds;
     //DataList1.DataBind();
     if (!IsPostBack)
     {
         BLLmessage bllmessage = new BLLmessage();
         int        result     = bllmessage.message_state();
         AspNetPager1.RecordCount = result;
         AspNetPager1.PageSize    = 5;
         binddata();
     }
 }