Example #1
0
        protected void btn_SearchMall_Click(object sender, EventArgs e)
        {
            string region = ddlRegion.SelectedItem.Text;

            LVShoppingMall.DataSource = carparkInfo.searchCarpark(txtMallName.Text, region);
            LVShoppingMall.DataBind();
        }
Example #2
0
        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();
        }
Example #3
0
 protected void LVShoppingMall_PagePropertiesChanging(object sender, PagePropertiesChangingEventArgs e)
 {
     (LVShoppingMall.FindControl("DataPager1") as DataPager).SetPageProperties(e.StartRowIndex, e.MaximumRows, false);
     bindAll();
 }