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!

A little help with this code please

Status
Not open for further replies.

JoshFink

IS-IT--Management
Mar 6, 2003
50
US
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=&quot;vb&quot; runat=&quot;server&quot;>
Sub Page_Load()
time.text=Hour(Now) & &quot;:&quot; & Minute(Now) & &quot;:&quot; & 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=&quot;time&quot; runat=&quot;server&quot; />
</body>
</html>
[/code]

 
I think your event probably isn't properly wired. Try changing your method declaration to this:

Sub Page_Load() Handles MyBase.Load

-paul
penny1.gif
penny1.gif

The answer to getting answered -- faq855-2992
 
Thanks for the reply, this doesn't seem to have worked though.

Any other thoughts?

Thanks

Josh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top