protected void btnSearch_Click1(object sender, EventArgs e) { lblSuccess.Text = ""; lblStatus.Text = ""; string category = ddlCategory.SelectedValue.ToString(); List <Stock> sL = replenishStockController.populateReplenishStock(category); StockDetailsGrid.DataSource = sL; StockDetailsGrid.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { lblSuccess.Text = ""; if (!IsPostBack) { List <String> cg = replenishStockController.getItemCategory(); ddlCategory.DataSource = cg; ddlCategory.DataBind(); string category = ddlCategory.SelectedValue.ToString(); List <Stock> sL = replenishStockController.populateReplenishStock(category); StockDetailsGrid.DataSource = sL; StockDetailsGrid.DataBind(); } }