搞掂asp联动菜单
时间:2006-03-05 来源:joosson
研究了半个下午,终于搞定,可能对很多asp高手来说这只是小菜,让大家见笑了,毕竟由于时间紧张,才刚开始学,大家多多指教。
代码如下:
<form name="report_date" method = "post" action = "test7.asp" >
<table>
<tr bgcolor="#FFFFFF">
<tr>
<td height="25" bgcolor="#FFFFFF">
<div align="right">统计机构:</div>
</td>
<td height="25" bgcolor="#FFFFFF">
<select name="branch" onChange="ChangeSelect(document.report_date.branch.options[document.report_date.branch.selectedIndex].value)" size="1">
<option value="620000">全省全部分公司</option>
<%
Do Until rsbranch1.EOF
%>
<option value="<% response.write(rsbranch1("branch_no")) %>"
>
<% response.write(rsbranch1("branch_name")) %>
</option>
<%
rsbranch1.MoveNext
Loop
%>
</select>
</td>
</tr>
<tr>
<td>下属基层机构</td>
<td>
<select name="branch2" >
<option value="">请指定</option>
</select>
</td>
</tr>
<table>
<tr bgcolor="#FFFFFF">
<tr>
<td height="25" bgcolor="#FFFFFF">
<div align="right">统计机构:</div>
</td>
<td height="25" bgcolor="#FFFFFF">
<select name="branch" onChange="ChangeSelect(document.report_date.branch.options[document.report_date.branch.selectedIndex].value)" size="1">
<option value="620000">全省全部分公司</option>
<%
Do Until rsbranch1.EOF
%>
<option value="<% response.write(rsbranch1("branch_no")) %>"
>
<% response.write(rsbranch1("branch_name")) %>
</option>
<%
rsbranch1.MoveNext
Loop
%>
</select>
</td>
</tr>
<tr>
<td>下属基层机构</td>
<td>
<select name="branch2" >
<option value="">请指定</option>
</select>
</td>
</tr>
相关阅读 更多 +