Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/01/2008, 15:52
nancy8120
 
Fecha de Ingreso: enero-2006
Mensajes: 233
Antigüedad: 19 años, 3 meses
Puntos: 2
Re: problemas con selected

este campo es de tipo numerico
estoy haciendo el mismo ejercicio
en otra lista lo unico diferente es q el tipo de dato es string y si me funciona este es el codigo
Código:
<select size="1" name="codigo_fill">
				<option value="">Seleccione</option>
				<%
                   strsql5 = "SELECT CODIGO,DESCRIPCION FROM FILLINGSYSTEM"
	              set rst5 = conn.execute(strsql5)
        				if not rst5.eof then
		                do while not rst5.eof %>
	                    <option value="<%=rst5("CODIGO")%>" <% if rst5("CODIGO")=fill  then response.write "selected"%>><%=rst5("CODIGO")%>--<%=rst5("DESCRIPCION")%></option>
		             <% rst5.movenext
		                loop
	                    end if
                      
					%>

              </select>