Ejemplo n.º 1
0
 protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     try
     {
         GridView1.PageIndex = e.NewPageIndex;
         book.SearchBook(GridView1, queryString);
     }
     catch (Exception error)
     {
         throw new Exception(error.Message);
     }
 }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            book        = new Book();
            dt          = new DataTable();
            queryString = new Dictionary <string, string>();

            setUpDictionary();

            if (!IsPostBack)
            {
                book.SearchBook(GridView1, queryString);
            }
        }