codice:
<select name="valore">
<option value="a" <%if rs.fields("tipodocumento")="a" then%> selected="selected" <% end if%>>a</option>
<option value="b" <%if rs.fields("tipodocumento")="b" then%> selected="selected" <% end if%>>b</option>
<option value="c" <%if rs.fields("tipodocumento")="c" then%> selected="selected" <% end if%>>c</option>
</select>
meglio ancora sarebbe
codice:
'la varibile che leggi e che devi andare a controllare
tipodoc=request.item("tipodoc")
%><select name="tuaselect"> <%
do while not rs.eof
tipodocumento=rs.fields("tipodocumento")
if tipodoc=tipodocumento then
'se il controllo è verificato setto la option come selected
%>
<option value="<%=tipodocumento%>" selected="selected" ><%=tipodocumento%></option>
<%
else
'se il controllo non è verificato
%>
<option value="<%=tipodocumento%>" selected="selected" ><%=tipodocumento%></option>
<%
ens if
rs.movenext
loop
%></select> <%
ciao