<% dim select if(数据库) then select = "selected" else select = "" end if %><option <%=select%> >
<select> <% if not rs.eof while not rs.eof %> <option value="<%=rs("BitField")%>">rs("BitField")%></option> <% rs.movenext wend end if %>大概是这样吧,asp好久没用了 </select>
dim select
if(数据库) then
select = "selected"
else
select = ""
end if
%><option <%=select%> >
<%
if not rs.eof
while not rs.eof
%>
<option value="<%=rs("BitField")%>">rs("BitField")%></option>
<%
rs.movenext
wend
end if
%>大概是这样吧,asp好久没用了
</select>