longmatch
Programmer
- Nov 1, 2001
- 406
I just copy the program from Beginning ASP textbook to practice my ASP programing. Unfortunatly it did run. I just check word by word, almost the same. I need you to help me to find what is wrong in this code.
Thanks
Haijun
<HTML>
<head>
<title>Example do while</title>
</head>
<body>
<H1>Year to date: Monthly scales </H1><br>
<%
varRowCount = 1
varTodayDate = day(now())
varTodayMonth = MonthName(month(date()))
Response.write "<h2>Report for " & varTodayMonth & "</h2>"
Do While varRowCount <= varTodayDate
Response.Write "For " varTodayMonth & " " & varRowCount
Response.Write ": Number of Clients met was_____<br>"
varRowCount = varRowCount + 1
Loop
%>
</body>
</html>
Thanks
Haijun
<HTML>
<head>
<title>Example do while</title>
</head>
<body>
<H1>Year to date: Monthly scales </H1><br>
<%
varRowCount = 1
varTodayDate = day(now())
varTodayMonth = MonthName(month(date()))
Response.write "<h2>Report for " & varTodayMonth & "</h2>"
Do While varRowCount <= varTodayDate
Response.Write "For " varTodayMonth & " " & varRowCount
Response.Write ": Number of Clients met was_____<br>"
varRowCount = varRowCount + 1
Loop
%>
</body>
</html>