ASP 怎么取数据库表中栏位做成下拉列表/菜单,这个栏位?

来源:百度知道 编辑:UC知道 时间:2024/05/21 17:59:25
我现在有一个数据库表member 其中有一个栏位是UserName
我怎么能在ASP中,用表中这个栏位所有的值做成一个列表/菜单

谢谢

我再来改一下
<select name="select">
<option selected>==请选择==</option>
<%if rs.eof and rs.bof then%>
<option selected>没有记录</option>
<%
else
do while not rs.eof%>

<option value="<%=rs("aa")%>"><%=rs("aa")%></option>

<%
rs.movenext
loop
end if
rs.close
%>
</select>

<select name="select">
<%do while not rs.eof%>

<option value="<%=rs("aa")%>"><%=rs("aa")%></option>

<%
rs.movenext
loop
%>
</select>
改一下楼上的,呵呵

<%do while not rs.eof%>
<select name="select">
<option value="<%=rs("aa")%>"><%=rs("aa")%></option>
</select>
<%