ASP批量修改记录

来源:百度知道 编辑:UC知道 时间:2024/06/03 12:25:24
for i=1 to recCnt
%><input type="text" name="sn" size="50" value="<%=rs("sn")%>" readonly/>
<%
next
%>

reccnt 是上页读取过来的值

input 可以根据reccnt 显示出来多个 但是 怎么让sn的值也显示多个呢 sn 他这么多input里显示的都一样的

<%
while not rs.eof and reccnt>0
%>
<input type="text" name="sn" size="50" value="<%=rs("sn")%>" readonly/>
<% reccnt=reccnt-1
rs.movenext()
wend
%>
或者
<%for i=1 to recCnt
%>
<% while not rs.eof%>
<input type="text" name="sn" size="50" value="<%=rs("sn")%>" readonly/>
<% rs.movenext()
wend
%>
<%
next
%>