Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I just copy the program from Beginn

Status
Not open for further replies.

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 &quot;<h2>Report for &quot; & varTodayMonth & &quot;</h2>&quot;


Do While varRowCount <= varTodayDate
Response.Write &quot;For &quot; varTodayMonth & &quot; &quot; & varRowCount
Response.Write &quot;: Number of Clients met was_____<br>&quot;
varRowCount = varRowCount + 1
Loop
%>
</body>
</html>
 
Hello Haijun,

There is a minor problem in the code.

Response.Write &quot;For &quot; & varTodayMonth & &quot; &quot; & varRowCount

What web server are you using? Does it have ASP installed?

Richard
 
Thank you very much. I just check it, sorry about the delay.

Haijun
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top