Hello, I have some code that I would like someone to look at, it's from a Wrox book and it doesn't seem to be working. Hopefully someone can tell me what's wrong with the code. Hey, if I was good at this code, I wouldn't need the book.
When I view this page, it says "In WebServerLand the time is currently:" but doesn't show the time.
Thanks
Josh
[/code]
<script language="vb" runat="server">
Sub Page_Load()
time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
End Sub
</script>
<html>
<head><title>The Punctual Web Server</title></head>
<body>
<h1>Welcome</h1>
In WebServerLand the time is currently:
<asp:label id="time" runat="server" />
</body>
</html>
[/code]
When I view this page, it says "In WebServerLand the time is currently:" but doesn't show the time.
Thanks
Josh
[/code]
<script language="vb" runat="server">
Sub Page_Load()
time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
End Sub
</script>
<html>
<head><title>The Punctual Web Server</title></head>
<body>
<h1>Welcome</h1>
In WebServerLand the time is currently:
<asp:label id="time" runat="server" />
</body>
</html>
[/code]