你改成这样呢?
<%do while not rs.eof%><%=rs("name")%>//读到你要的地方<%
rs.movenext
loop
%>
<%do while not rs.eof%><%=rs("name")%>//读到你要的地方<%
rs.movenext
loop
%>
解决方案 »
- 怎么用asp.net实现图片滚动
- 有关ADO.NET中设置连接数据库超时问题,请高手帮忙解决!!!!
- javascript里面调用webService方法无效,找不到WebService类,急需解决
- 还是Repeater的问题?
- ★★★★★ASP.NET中怎样让ActiveX一加载就处在激活状态??只有这点分了,各位大侠帮帮忙!★★★★★
- 求导航条的asp.net(c#)代码
- asp.net执行插入数据的方法是出错,请高手指点!
- IsPostBack奇怪的现象
- 为什么老说不是对象或者为空?
- DataGrid翻页问题:请高手指教!!!(100分等你拿)
- 页面打印问题
- 关于WEB 和 语音识别的问题
<select name="aa" onChange="bh()">
<option selected>
<%
'假设变量“zhang”是当前记录的Option
if not(rs.eof) then
do while not(rs.eof or rs.bof)%>
<option<%if rs("name")=zhang then%> selected<%end if%>><%=rs("name")%></option>
<%rs.movenext:loop
else%>
<option><%=zhang%></option>
<%end if%>
</select>
</form>
<select name="aa" onChange="bh()">
<%
'假设变量“zhang”是当前记录的Option
if not(rs.eof) then
do while not(rs.eof or rs.bof)%>
<option<%if rs("name")=zhang then%> selected<%end if%>><%=rs("name")%></option>
<%rs.movenext:loop
else%>
<option><%=zhang%></option>
<%end if%>
</select>
</form>