protected void btn_report_Click(object sender, ImageClickEventArgs e) { PricingClass objPricingClass = new PricingClass(); List <PricingClass> lstPricingClass = new List <PricingClass>(); lstPricingClass = objPricingClass.CallPerformed(lst_project.SelectedValue, lst_provider.SelectedValue); grdViewOutstanding.DataSource = lstPricingClass; grdViewOutstanding.DataBind(); ViewState["lstOutstandingOrders"] = lstPricingClass; upnlOutstanding.Update(); ViewState["getall"] = 1; txt_count.Text = lstPricingClass.Count.ToString(); }
protected void lbRemoveFilterOutstanding_Click(object sender, EventArgs e) { if (ViewState["Ocode_igd"] != null) { ViewState["Ocode_igd"] = null; } if (ViewState["Osize_title"] != null) { ViewState["Osize_title"] = null; } if (ViewState["Obrand_name"] != null) { ViewState["Obrand_name"] = null; } if (ViewState["Ocode_igd"] != null) { ViewState["Ocode_igd"] = null; } if (ViewState["Obuy_price"] != null) { ViewState["Obuy_price"] = null; } if (ViewState["Osale_price"] != null) { ViewState["Osale_price"] = null; } if (ViewState["Ou_date_time"] != null) { ViewState["Ou_date_time"] = null; } if (ViewState["Omargin_profit"] != null) { ViewState["Omargin_profit"] = null; } if (ViewState["Opercent_profit"] != null) { ViewState["Opercent_profit"] = null; } PricingClass objPricingClass = new PricingClass(); List <PricingClass> lstPricingClass = new List <PricingClass>(); lstPricingClass = objPricingClass.CallPerformed(lst_project.SelectedValue, lst_provider.SelectedValue); grdViewOutstanding.DataSource = lstPricingClass; grdViewOutstanding.DataBind(); ViewState["lstOutstandingOrders"] = lstPricingClass; }