Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         CompanyAccess obj       = new CompanyAccess();
         List <int>    EmpIDList = obj.GetEmployeeID();
         int           i         = 0;
         foreach (int EmpID in EmpIDList)
         {
             EmployeeIDDropDownList.Items.Insert(i, new ListItem(EmpID.ToString()));
             i++;
         }
     }
 }