Exemplo n.º 1
0
    protected void BindSearchResults()
    {
        DataTable dt = SearchBL.GetSearchResults(txtZip.Text, selectedCategoryId, Convert.ToInt32(ddRetailers.SelectedValue), Convert.ToInt32(ddModel.SelectedValue));

        gvProducts.DataSource = dt;
        gvProducts.DataBind();
        lblResultCount.Text = dt.Rows.Count + " Results Found.";
        BindRetailers();
    }
Exemplo n.º 2
0
 protected void BindSearchResults(string zip, int categoryId, int retailerId, int inputSize, string boxRate)
 {
     try
     {
         txtZip.Text        = zip;
         selectedCategoryId = categoryId;
         //ddRetailers.DataBind();
         //ddRetailers.SelectedValue = retailerId.ToString();
         //ddModel.DataBind();
         //ddModel.SelectedValue = inputSize.ToString();
         DataTable dt = SearchBL.GetSearchResults(zip, categoryId, retailerId, inputSize, boxRate);
         gvProducts.DataSource = dt;
         gvProducts.DataBind();
         lblResultCount.Text = dt.Rows.Count + " Results Found.";
         BindRetailers(retailerId);
     }catch {}
 }