asp中,怎样在同一个页面给隐藏域赋值并获取这个隐藏域的值
<divclass="t1"><imgsrc="images/gotop.gif"id="gotop"/><divid="showArea"><%whilenotrs.e...
<div class="t1">
<img src="images/gotop.gif" id="gotop" />
<div id="showArea">
<%while not rs.eof%>
<input name="bh" type="hidden" value="<%=rs.fields(0)%>" />
<input name="mz" type="hidden" value="<%=rs.fields(1)%>" />
<a href="upload/<%=rs.fields(2)%>" rel="zoom1" rev="upload/<%=rs.fields(2)%>"><img src="upload/<%=rs.fields(2)%>" width="70" height="70" /></a>
<%rs.movenext
wend%>
</div>
<img src="images/gobottom.gif" id="gobottom" />
</div>
<div class="t2">
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="upload/<%=pic%>" id="zoom1" class="MagicZoom MagicThumb"><img src="upload/<%=pic%>" id="main_img" class="main_img" style="width:400px; height:400px;" /></a></td>
</tr>
<tr>
<td><%=mz%></td>
</tr>
<tr>
<td><%response.Write("<a href='xcsc.asp?bh="&bh&"'>删除</a>")%></td>
</tr>
</table>
</div>
我下面获取的时候应该怎么改? 展开
<img src="images/gotop.gif" id="gotop" />
<div id="showArea">
<%while not rs.eof%>
<input name="bh" type="hidden" value="<%=rs.fields(0)%>" />
<input name="mz" type="hidden" value="<%=rs.fields(1)%>" />
<a href="upload/<%=rs.fields(2)%>" rel="zoom1" rev="upload/<%=rs.fields(2)%>"><img src="upload/<%=rs.fields(2)%>" width="70" height="70" /></a>
<%rs.movenext
wend%>
</div>
<img src="images/gobottom.gif" id="gobottom" />
</div>
<div class="t2">
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="upload/<%=pic%>" id="zoom1" class="MagicZoom MagicThumb"><img src="upload/<%=pic%>" id="main_img" class="main_img" style="width:400px; height:400px;" /></a></td>
</tr>
<tr>
<td><%=mz%></td>
</tr>
<tr>
<td><%response.Write("<a href='xcsc.asp?bh="&bh&"'>删除</a>")%></td>
</tr>
</table>
</div>
我下面获取的时候应该怎么改? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询