Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Punctual.aspx Doesn't Work


Message #1 by "Michael D. Miller" <millerassoc@a...> on Sat, 31 Aug 2002 13:38:12
in Beginning ASP.NET using VB.NET, CH 1, p44:

with the 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>

...only shows the text and not the actual time when I run it from my IE6 
browser.  I have the complete vs.net professional edition installed, and 
have separate machines for a Win2000 server and my Win98 workstation.  I 
use the server as my development machine, as .net must be developed on an 
NT, w2k, etc. machine.  I am also running the code from the server's, 
local, IE because for some other reason, I cannot find the .aspx file from 
my local win98 workstation.  The form runs, but without showing any clock 
times.

Also, note that WROX's example of the same exercise does not run either, 
so I think my syntax is correct.

Any ideas?

  Return to Index