private void LoadEmployee(int did)
        {
            objBll.DeptId     = did;
            DdlEmp.DataSource = objBll.GetEmp();
            DdlEmp.DataBind();
            ListItem liPost1 = new ListItem("Select Employee", "-1");

            DdlEmp.Items.Insert(0, liPost1);
        }
Exemple #2
0
        private void LoadEmployee()
        {
            objBll.DeptId     = Convert.ToInt32(DdlDept.SelectedValue);
            DdlEmp.DataSource = objBll.GetEmp();
            DdlEmp.DataBind();
            ListItem liPost1 = new ListItem("Select Employee", "-1");

            DdlEmp.Items.Insert(0, liPost1);
        }