Hola Tengo el siguiente problema eestoy tratando de cargar el valos de un List BOX en otro List box el codigo ASP de la parte donde pongo los list BOX seria el siguiente.
<td colspan="2" align="left">
<div align="left">
<label>Desde:</label>
<select name="LstAnio1" class="StyleSelectAnio" id="LstAnio1" onChange="Habilitar()">
<%
for i = 2003 to year(now()) + 15
if i=2003 then
response.Write("<option value='" & i & "'selected>" & string(4 - len(trim(cstr(i))), "0") & trim(cstr(i)) & "</option>" & chr(13))
else
response.Write("<option value='" & i & "'>" & string(4 - len(trim(cstr(i))), "0") & trim(cstr(i)) & "</option>" & chr(13))
end if
next
%>
</select>
/
<select name="LstMes1" class="styleSelectVerySmall" id="LstMes1" onChange="Hab_Mes()" disabled>
<%
for i = 1 to 12
if i= 1 then
response.Write("<option value='" & i & "'selected>" & string(2 - len(trim(cstr(i))), "0") & trim(cstr(i)) & "</option>" & chr(13))
else
response.Write("<option value='" & i & "'>" & string(2 - len(trim(cstr(i))), "0") & trim(cstr(i)) & "</option>" & chr(13))
end if
next
%>
</select>
</div></td>
<td> <div align="left">
<select name="LstMes2" class="styleSelectVerySmall" id="LstMes2" disabled>
<%
for i = 1 to 12
if i = 1 then
response.Write("<option value='" & i & "'selected>" & string(2 - len(trim(cstr(i))), "0") & trim(cstr(i)) & "</option>" & chr(13))
else
response.Write("<option value='" & i & "'>" & string(2 - len(trim(cstr(i))), "0") & trim(cstr(i)) & "</option>" & chr(13))
end if
next
%>
</select>
/
<select name="LstAnio2" class="StyleSelectAnio" id="LstAnio2" onChange="TraerAno()" disabled>
<%
Response.Write("<option value='" & i & "'selected>" & string(4 - len(trim(cstr(i))), "0") & trim(cstr(i)) & "</option>" & chr(13))
%>
</select>
</div> </td>
Ahora va el codigo de las funciones
<script language="javascript">
function Habilitar()
{
if (FrmFiltro.LstAnio1.value != 2003 )
{
FrmFiltro.LstMes1.disabled=false;
FrmFiltro.LstAnio2.disabled=true;
FrmFiltro.LstMes2.disabled=true;
}
else
{
FrmFiltro.LstMes1.disabled=true;
FrmFiltro.LstAnio2.disabled=true;
FrmFiltro.LstMes2.disabled=true;
}
}
function Hab_Mes()
{
If (FrmFiltro.LstMes1.value < 13)
{
FrmFiltro.LstAnio2.disabled = false
}
else
{
FrmFiltro.LstAnio2.disabled = true
}
}
</script>
NEsesitaria hacer que el LstAnio2 tome el valor del listbox LstAnio1
Desde ya muchas gracias.