private void Cargar_DropDownList_AreaInteres() { DropDownList_AreaInteres.Items.Clear(); radicacionHojasDeVida _radicacionHojasDeVida = new radicacionHojasDeVida(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable tablaAreasEspecializacion = _radicacionHojasDeVida.ObtenerAreasInteresLaboral(); ListItem item = new ListItem("Seleccione...", ""); DropDownList_AreaInteres.Items.Add(item); int contador = 0; foreach (DataRow fila in tablaAreasEspecializacion.Rows) { if (contador > 0) { item = new ListItem(fila["DESCRIPCION"].ToString(), fila["ID_AREAINTERES"].ToString()); DropDownList_AreaInteres.Items.Add(item); } contador += 1; } DropDownList_AreaInteres.DataBind(); }
private void cargar_DropDownList_AREAS_ESPECIALIZACION() { DropDownList_AREAS_ESPECIALIZACION.Items.Clear(); radicacionHojasDeVida _radicacionHojasDeVida = new radicacionHojasDeVida(Session["idEmpresa"].ToString(), Session["USU_LOG"].ToString()); DataTable tablaAreasEspecializacion = _radicacionHojasDeVida.ObtenerAreasInteresLaboral(); ListItem item = new ListItem("Seleccione Área", ""); DropDownList_AREAS_ESPECIALIZACION.Items.Add(item); foreach (DataRow fila in tablaAreasEspecializacion.Rows) { item = new ListItem(fila["DESCRIPCION"].ToString(), fila["ID_AREAINTERES"].ToString()); DropDownList_AREAS_ESPECIALIZACION.Items.Add(item); } DropDownList_AREAS_ESPECIALIZACION.DataBind(); }