D
D. Shane Fowlkes
Can someone please tell me what's wrong with this basic sub rountine? It's
supposed to just write 5 < hr /> lines to the page (I'm just teaching myself
as I read a book on .NET). It seems to error on the < % = WriteHR(5) % >
line.
THANKS!
**********************
<% @Page Language = "VB" Debug = "True" Explicit = "True" %>
<html>
<head>
<script runat="server">
Sub CreateHR(QTY As Integer)
Dim X As Integer
X = 1
Do While X <= QTY
Response.Write("<hr />" & vbcrlf)
X = X +1
Loop
End Sub
</script>
</head>
<body>
<p>We will write 5 Horizontal Lines.</p>
<% =CreateHR(5) %>
</body>
</html>
--
*********************************
D. Shane Fowlkes - TMM
Saving the world, one web site at a time.
http://www.shanefowlkes.com
*********************************
supposed to just write 5 < hr /> lines to the page (I'm just teaching myself
as I read a book on .NET). It seems to error on the < % = WriteHR(5) % >
line.
THANKS!
**********************
<% @Page Language = "VB" Debug = "True" Explicit = "True" %>
<html>
<head>
<script runat="server">
Sub CreateHR(QTY As Integer)
Dim X As Integer
X = 1
Do While X <= QTY
Response.Write("<hr />" & vbcrlf)
X = X +1
Loop
End Sub
</script>
</head>
<body>
<p>We will write 5 Horizontal Lines.</p>
<% =CreateHR(5) %>
</body>
</html>
--
*********************************
D. Shane Fowlkes - TMM
Saving the world, one web site at a time.
http://www.shanefowlkes.com
*********************************