| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 719 人关注过本帖
标题:为什么<FORM>里有多个<SELECT>浏览时就会运行很长时间?
只看楼主 加入收藏
skybirdzw
Rank: 2
等 级:论坛游民
帖 子:189
专家分:12
注 册:2007-3-30
结帖率:66.67%
收藏
 问题点数:0 回复次数:1 
为什么<FORM>里有多个<SELECT>浏览时就会运行很长时间?
帮小弟看看啊,以下是我测试的代码:
<!--#include file="conn/conn.asp" -->
<form name="form2" action="hire_save.asp" method="post">

  <select size=1 id="dept" style="WIDTH: 120px">
                  <option value="部门不限" selected>部门不限</option>
                  <%
                             sqlz="select dept_id,dept_name from Comjobtype where dept_cmember='"&cmember_login&"'"
                             response.Write sqlz
                             rsz.open sql,conn,1,1
                             if not(rsz.eof and rsz.bof) then
                                     
                            
                             do while not rsz.eof
                                response.write"<OPTION value="&rsz("dept_name")&">"&rsz("dept_name")&"</option>"
                              rsz.movenext
                             loop
                             end if
                             rsz.close
                            %>
  </select>
                <p></p>
<select name="s1">
  <option value="请选择" selected>岗位类别大类</option>
   <%
set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from classification order by position_id desc"
rs.open sql,conn,1,1
while not rs.eof%>
        <option value="<%=rs("position_id")%>"><%=rs("position_name")%></option>
  <%rs.movenext
  wend
rs.close
set rs=nothing
%>
</select>

<select name="s2">
<option value="请选择" selected>岗位类别小类</option>
</select>

<select name="s11">
  <option value="请选择" selected>航线区域大类</option>
   <%
set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from sail order by fid desc"
rs.open sql,conn,1,1
while not rs.eof%>
        <option value="<%=rs("fid")%>"><%=rs("sail")%></option>
  <%rs.movenext
  wend
rs.close
set rs=nothing
%>
</select>

<select name="s21">
<option value="请选择" selected>航线区域小类</option>
</select>

<input type="button">
</form>
搜索更多相关主题的帖子: FORM SELECT 运行 浏览 时间 
2008-05-21 10:05
madpbpl
Rank: 4
等 级:贵宾
威 望:11
帖 子:2876
专家分:244
注 册:2007-4-5
收藏
得分:0 
rsz.open sql,conn,1,1
rsz在哪定义的,在conn里?延时个人认为是死循环或是sql语句的问题
2008-05-21 15:45
快速回复:为什么<FORM>里有多个<SELECT>浏览时就会运行很长时间?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017377 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved