public void BindEmployee() { DDLEmployee.Items.Clear(); //DDLCustomer.DataSource = DCMaster.Get_Customer_PendingDocNo("Customer"); //DDLEmployee.DataSource = Specimen.Get_PedingDocNo_Employee(Convert.ToInt32(strFY)); DDLEmployee.DataSource = Specimen.Get_PedingDocNo_Employee(Convert.ToInt32(strFY)); DDLEmployee.DataBind(); DDLEmployee.Items.Insert(0, new ListItem("- Select Employee -", "0")); }
public void BindEmployee() { DataSet ds = null; if (ViewState["sales"] == null) { ds = Specimen.Get_ApprovedDocNo_Employee(Convert.ToInt32(strFY)); ViewState["sales"] = ds; } else { ds = (DataSet)ViewState["sales"]; } DDLEmployee.Items.Clear(); DDLEmployee.DataSource = ds; DDLEmployee.DataBind(); DDLEmployee.Items.Insert(0, new ListItem("- Select Employee -", "0")); }