日期:2014-05-17  浏览次数:21104 次

不知道这思路行不行?
第二类菜单是通过数组读取,第三类菜单我想通过下面方法不知道行不行?如果行的话怎么没有读取第三类菜单名出来呢?又没报错!
<select   name= "BigClassName "> ...
<select   name= "smallClassName "> ...
<%  
rs.movenext
do   while   not   rs.eof
%>
<option   value= " <%=rs( "nmenu ")%> "> <%=rs( "nmenu ")%> </option>
<%
dim   nnrs,sid
nsid=rs( "sid ")
sql= "select   *   from   nntype   where   sid= ' "&sid& " ' "
nnrs.open   sql,conn,1,1
if   not(nnrs.eof   and   nnrs.bof)   then
call   nnmenu()
end   if
rs.movenext
loop
rs.close
%>
</select>


<select   name= "nnmenu ">
<%   sub   nnmenu()   %>
<option   value= " "   selected> 不指定三级栏目 </option>
<%
do   while   not   nnrs.eof
%>
<option   value= " <%=nnrs( "sid ")   %> "> <%=nnrs( "nnmenu ")   %> </option>
<%
nnrs.movenext
loop
nnrs.close
end   sub
%>
</select>

------解决方案--------------------
没看明白这段
<select name= "BigClassName "> ...
<select name= "smallClassName "> ...
<%
rs.movenext
do while not rs.eof
%>
<option value= " <%=rs( "nmenu ")%> "> <%=rs( "nmenu ")%> </option>
<%
dim nnrs,sid
nsid=rs( "sid ")
sql= "select * from nntype where sid= ' "&sid& " ' "
nnrs.open sql,conn,1,1
if not(nnrs.eof and nnrs.bof) then
call nnmenu()
end if
rs.movenext
loop
rs.close
%>
</select>
是什么意思
------解决方案--------------------
那我就顶一下
------解决方案--------------------
帮顶
------解决方案--------------------
三级也要用数组,或者用框架