protected void btn_SearchMall_Click(object sender, EventArgs e) { string region = ddlRegion.SelectedItem.Text; LVShoppingMall.DataSource = carparkInfo.searchCarpark(txtMallName.Text, region); LVShoppingMall.DataBind(); }
protected void bindAll() { string region = ddlRegion.SelectedItem.Text; if (region == "All") { //ListView1.DataSource = retrieveByCategory.getProductByStatus("Available", "Rent"); LVShoppingMall.DataSource = carparkInfo.getAllCarpark(); } else { LVShoppingMall.DataSource = carparkInfo.searchCarpark(txtMallName.Text, region); } LVShoppingMall.DataBind(); }
protected void LVShoppingMall_PagePropertiesChanging(object sender, PagePropertiesChangingEventArgs e) { (LVShoppingMall.FindControl("DataPager1") as DataPager).SetPageProperties(e.StartRowIndex, e.MaximumRows, false); bindAll(); }