当前位置:首页 > 网站技术 > ASP

ASP中For...Next语句

...

<html>
<head>
<title>asp测试页面</title>
</head>
<body bgcolor=red>
循环1:<br>
<%
for COUNTER=1 To 3
response.write"循环..."&"<br>"
next
%>
——————————————————————<br>
循环2:<br>
<%
for COUNTER=1 To 3
response.write"循环数字为:"& counter &"<br>"
next
%>
——————————————————————<br>
循环3:<br>
<%
for COUNTER=0 To 10 step 5
response.write"循环数字为:"&counter&"<br>"
next
%>
——————————————————————<br>
循环4:<br>
<%
for COUNTER=100 To 0 step -10
response.write"循环数字为:"&counter&"<br>"
next
%>
——————————————————————<br>
</body>
</html>

继续阅读
Form域中用Post提交容量大的数据
ASP第二版无组件验证码-GIF格式
ASP.NET2.0+SQL Server2005构建多层应用
ASP.NET2.0连接SQL Server数据库详解
利用ASP.NET来访问Excel文档
ASP.Net的Cookie实现
ASP.NET 的 Session 详解
ASP 中实现向浏览器传送脚本
维护ASP应用程序的安全
发表评论

昵称:
最新评论
暂时没有评论!