Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ShopHandler a = new ShopHandler();

            DataListproducts.DataSource = a.getAllStores();
            DataListproducts.DataBind();
        }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString["keyword"] != null)
     {
         ShopHandler a = new ShopHandler();
         DataListproducts.DataSource = a.search(Request.QueryString["keyword"].ToString());
         DataListproducts.DataBind();
     }
     else
     {
         ShopHandler a = new ShopHandler();
         DataListproducts.DataSource = a.getAllProducts();
         DataListproducts.DataBind();
     }
 }