Ver Mensaje Individual
  #7 (permalink)  
Antiguo 22/06/2002, 06:41
Avatar de ElAprendiz
ElAprendiz
 
Fecha de Ingreso: enero-2002
Ubicación: Maipu, Chile
Mensajes: 3.706
Antigüedad: 23 años, 3 meses
Puntos: 2
Re: problema con Listbox

bueno ahi esta completo lo que hace es obtener los datos de la BDD. y quiero que al recargar esta pagina se muestre la opcion seleccionada, por que o si no el usuario se confunde al mostrar la info que esta viendo vale..me ayudas?

<%
' este el fomulario de consulta e ingreso de notas

Set Conn = Server.CreateObject("ADODB.Connection")
conn.open= "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source="&server.mappath("colegio.mdb ")
rut=Session("rut")

SqlListaRamos="select a.Codigo, a.Ramo, a.electivo, a.rut_Profesor, b.curso from Ramos a, Cursos b where a.Rut_Profesor='"&rut&"' and a.Categoria=b.id_curso order by a.Ramo, b.curso"

set RsRamos=conn.execute(SqlListaRamos)

%>
<form method="POST" action="ProfNotas.asp"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" height="51">
<tr>
<td width="33%" height="20">ramos</td>
<td width="33%" height="20">operacion</td>
<td width="34%" height="20"> </td>
</tr>
<tr>
<td width="33%" height="19"><select class="caja" size="1" name="ListaRamos">
<%
do while not RsRamos.eof
%>
<option value="<%=RsRamos("Codigo")%> "><%=RsRamos("Ramo")%>&amp ;nbsp; 
(<%=RsRamos("curso")%>)</option>
<%
RsRamos.movenext
loop
%>

</select></td>
<td width="33%" height="19"><select class="caja" size="1" name="Operacion">
<option value="Consulta">Consulta</option>
<option value="Ingreso">Ingreso</option>
</select></td>
<td width="34%" height="19"><input class="boton" type="submit" value="Ver" name="Ver"></td>
</tr>
<tr>
<td width="33%" height="1"></td>
<td width="33%" height="1"></td>
<td width="34%" height="1"></td>
</tr>
</table>
</form>

<center><IMG SRC="http://www.550m.com/usuarios/altolacruz/elaprendiz.gif" ALT="Visitame en AlSurNet.com -- E-Learning E-Commerce Multimedia E-business--"></center>