
09/04/2003, 16:26
|
| | Fecha de Ingreso: febrero-2002
Mensajes: 157
Antigüedad: 23 años, 2 meses Puntos: 0 | |
<%
sql = "SELECT * from tabla where condiciones"
set rs = conn.execute(sql)%>
<select name="vendedor">
<%if not rs.eof then
list = rs.getrows()
end if%>
<%for i=0 to ubound(list,2) %>
<option value="<%=list(0,i)&"/"&list(1,i)%>" <%if request("vendedor")<>"" then%><%if request("vendedor")=ucase(list(0,i)) then Response.Write "selected"%><%end if%>><%=list(1,i)%></option>
<% next%>
con eso puedes cargar el combo, y lo recuperas con un request("vendedor") el valor del combo.
</select> |