public void BaseDepartmentBind1() { //string dept = DDL_Department.SelectedItem.Value; ReturnClass.ReturnDataTable dt = dl.Get_BaseDepartment(bl); // ("SELECT dept_id, dept_name FROM basedepartment order by dept_name "); ddl_department1.DataSource = dt.table; ddl_department1.DataTextField = "dept_name"; ddl_department1.DataValueField = "dept_id"; ddl_department1.DataBind(); ddl_department1.Items.Insert(0, new ListItem("--Select Department--", "0")); }
public void BaseDepartmentBind() { bl_empMap bl = new bl_empMap(); dl_empMap dl = new dl_empMap(); ReturnClass.ReturnDataTable dt = dl.Get_BaseDepartment(bl);// ("SELECT dept_id, dept_name FROM basedepartment order by dept_name "); ddl_department.DataSource = dt.table; ddl_department.DataTextField = "dept_name"; ddl_department.DataValueField = "dept_id"; ddl_department.DataBind(); ddl_department.Items.Insert(0, new ListItem("--Select Department--", "0")); }