ASP连动下拉列表从数据库读取
代码如下:
<%
dim rs
dim sql
dim count
set rs=server.createobject(“adodb来源[email protected]搞@^&代*@码网.recordset”)
sql = “select * from shiinfo order by id asc”
rs.open sql,conn,1,1
%>
省份 <%
sql = “select * from shenginfo”
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write “请先添加省份。”
response.end
else
%>
<%
do while not rs.eof
%><OPTION selected value="”>
<%
rs.movenext
loop
end if
rs.close
%>
城市:
==请选城市==
以上就是网上用的比较多的asp级联菜单效果代码的详细内容,更多请关注gaodaima搞代码网其它相关文章!