Example #1
0
        protected void btn_Result_Click(object sender, EventArgs e)
        {
            Units unit = new Units();

            unit.Unit_name = "%" + this.txt_Name.Text + "%";
            UnitProvider provider = new UnitProvider();

            this.ListPager1.RecordCount = provider.GetSize(unit);
            this.BindSource(0, "%" + this.txt_Name.Text + "%");
            this.ListPager1.PageChange += new PagerEventHandler(ListPager1_PageChange);
        }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         UnitProvider provider = new UnitProvider();
         this.ListPager1.RecordCount = provider.GetSize();
         this.BindSource(0, null);
     }
     this.account.Text           = Session["LOGINED"].ToString();
     this.datetime.Text          = this.BindDayWeek();
     this.ListPager1.PageChange += new PagerEventHandler(ListPager1_PageChange);
 }