Ejemplo n.º 1
0
        protected void btn_Result_Click(object sender, EventArgs e)
        {
            Company company = new Company();

            company.Company_name = "%" + this.txt_Name.Text + "%";
            CompanyProvider provider = new CompanyProvider();

            this.ListPager1.RecordCount = provider.GetSize(company);
            this.BindSource(0, "%" + this.txt_Name.Text + "%");
            this.ListPager1.PageChange += new PagerEventHandler(ListPager1_PageChange);
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         CompanyProvider provider = new CompanyProvider();
         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);
 }