asp页面添加链接,我想在遍历出来的机构上添加链接 ,但是下面的链接点上去没反应,怎么修改
<td><formname="form1"method="post"action="do.asp?type=1"><tablewidth="100%"border="0"...
<td><form name="form1" method="post" action="do.asp?type=1">
<table width="100%" border="0">
<% sql="select id,name from highbuilding"
rs.open sql,conn,1,1
%>
<tr>
<td width="33%" rowspan="4" valign="top"><div align="center">
<select name="select" size="15">
<% do until rs.eof %>
<a href="highbuildingDetail.asp?id=<%=rs("id")%>"><option value="<%=rs("id")%>" ><%=rs("name")%></option></a>
<% rs.movenext
loop
%>
</select>
</div></td>
<td height="21" colspan="2"><div align="center" class="style1">新增资料</div></td>
</tr>
<tr>
<td width="19%" height="40" nowrap><div align="center" class="style3">添加名称:</div></td>
<td width="48%" nowrap><input type="text" name="textfield" size="40"></td>
</tr>
<tr>
<td height="83" nowrap><div align="center" class="style3">添加内容:</div></td>
<td nowrap><textarea name="textarea" rows="5" cols="38"></textarea></td>
</tr>
<tr>
<td height="47"> </td>
<td><input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit" value="重置"></td>
</tr>
</table>
</form></td>
就是这一句<a href="highbuildingDetail.asp?id=<%=rs("id")%>"><option value="<%=rs("id")%>" ><%=rs("name")%></option></a>问题 展开
<table width="100%" border="0">
<% sql="select id,name from highbuilding"
rs.open sql,conn,1,1
%>
<tr>
<td width="33%" rowspan="4" valign="top"><div align="center">
<select name="select" size="15">
<% do until rs.eof %>
<a href="highbuildingDetail.asp?id=<%=rs("id")%>"><option value="<%=rs("id")%>" ><%=rs("name")%></option></a>
<% rs.movenext
loop
%>
</select>
</div></td>
<td height="21" colspan="2"><div align="center" class="style1">新增资料</div></td>
</tr>
<tr>
<td width="19%" height="40" nowrap><div align="center" class="style3">添加名称:</div></td>
<td width="48%" nowrap><input type="text" name="textfield" size="40"></td>
</tr>
<tr>
<td height="83" nowrap><div align="center" class="style3">添加内容:</div></td>
<td nowrap><textarea name="textarea" rows="5" cols="38"></textarea></td>
</tr>
<tr>
<td height="47"> </td>
<td><input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit" value="重置"></td>
</tr>
</table>
</form></td>
就是这一句<a href="highbuildingDetail.asp?id=<%=rs("id")%>"><option value="<%=rs("id")%>" ><%=rs("name")%></option></a>问题 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询