ASP如何设计动态表单
展开全部
<select name="select" onChange="var jmpURL=this.options[this.selectedIndex].value ; if(jmpURL!='') {window.location=jmpURL;} else {this.selectedIndex=0 ;}" >
<option >选择总分类</option>
<%Set Rs=server.createobject("adodb.recordset")
Rs.Open "select * from DF_Sort order by ID Asc",adocon,1,1
do while not Rs.eof %>
<option value="Sort2.asp?ID=<%=Rs("ID")%>&SortName=<%=Rs("SortName")%>&lmname_a=类别管理&lmname_b=二级类别"<%if Rs("ID")=cint(request.QueryString("id")) then%> selected <%end if%>><%=trim(Rs("SortName"))%></option>
<%Rs.movenext
loop
Rs.close
set Rs=nothing%>
</select>
<option >选择总分类</option>
<%Set Rs=server.createobject("adodb.recordset")
Rs.Open "select * from DF_Sort order by ID Asc",adocon,1,1
do while not Rs.eof %>
<option value="Sort2.asp?ID=<%=Rs("ID")%>&SortName=<%=Rs("SortName")%>&lmname_a=类别管理&lmname_b=二级类别"<%if Rs("ID")=cint(request.QueryString("id")) then%> selected <%end if%>><%=trim(Rs("SortName"))%></option>
<%Rs.movenext
loop
Rs.close
set Rs=nothing%>
</select>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询