<html>
<head>
<title>ASP示例1</title>
</head>
<body>
<%
Response.Write "<ul>"
Response.Write "<li>My name is Jack.</li>"
Response.Write "<li>I am from America.</li>"
Response.Write "<li>And I love China.</li>"
Response.Write "</ul>"
%>
</body>
</html>
<html>
<head>
<title>ASP示例2</title>
</head>
<body>
<%
DIM sum '定义变量sum
DIM i '定义循环变量i
sum=0
for i=1 to 100
sum=sum+i
next i
%>
<p>由1加到100</p>
<p>这是用Response.Write输出的结果:<%Response.Write sum%></p>
<p>这是另一种方法输出的结果:<%=sum%></p>
</body>
</html>