asp应注意的问题
在写asp页面的时候,下面的这个问题染我白白花了一下午来调试:
<%
i=0
for i=0 to 20
if not rs.eof and not rs.bof then
while not rs.eof
response.write rs("content")
rs.movenext
wend
end if
i=21 '这里有问题
next
%>
用过c的都知道,在for 的循环里置变量i的值是不会影响循环的次数的,循环结束的条件已经压入堆栈了,可在asp 中上面的rs就只能显示一条记录,所以在for中特别是调用自己写的函数时一定记得不要重名。