protected void lbRemoveFilterOutstanding_Click(object sender, EventArgs e) { if (ViewState["Ocode_igd"] != null) { ViewState["Ocode_igd"] = null; } if (ViewState["Obrand_name"] != null) { ViewState["Obrand_name"] = null; } if (ViewState["Osize_title"] != null) { ViewState["Osize_title"] = null; } if (ViewState["Ocolor_name"] != null) { ViewState["Ocolor_name"] = null; } if (ViewState["Ocode_igd"] != null) { ViewState["Ocode_igd"] = null; } if (ViewState["Oprovider_name"] != null) { ViewState["Oprovider_name"] = null; } if (ViewState["Oporz_title"] != null) { ViewState["Oporz_title"] = null; } if (ViewState["Ochele_title"] != null) { ViewState["Ochele_title"] = null; } if (ViewState["Oplan_title"] != null) { ViewState["Oplan_title"] = null; } GoodsClass objOutstanding = new GoodsClass(); List <GoodsClass> lstPricingClass = new List <GoodsClass>(); if (ViewState["Gstate"].ToString().Equals("1")) { lstPricingClass = objOutstanding.GetGoodsClass(); } else { lstPricingClass = objOutstanding.GetNullGoodsClass(); } grdViewOutstanding.DataSource = lstPricingClass; grdViewOutstanding.DataBind(); ViewState["lstOutstandingOrders"] = lstPricingClass; }
protected void btn_null_Click(object sender, EventArgs e) { ViewState["Gstate"] = "2"; GoodsClass objPricingClass = new GoodsClass(); List <GoodsClass> lstGoodsClass = new List <GoodsClass>(); lstGoodsClass = objPricingClass.GetNullGoodsClass(); grdViewOutstanding.DataSource = lstGoodsClass; grdViewOutstanding.DataBind(); ViewState["lstOutstandingOrders"] = lstGoodsClass; upnlOutstanding.Update(); }