Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 22nd, 2003, 05:59 PM
Registered User
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help

Hello, need some help with an example in the book Beginning ASP.NET 1.0 with Visual Basic .NET. Here's the source 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>

Now, can someone tell me why I get a page that has the text, but it doesn't tell the time after it like it says it's supposed to in the book?
       Thx
 
Old September 22nd, 2003, 06:10 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think it is case sensitive so you should change time.text to Time.Text

Hope it helps

Jacob.

 
Old September 23rd, 2003, 07:32 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

It ran fine on my machine. Have you been able to get anything else in ASP.NET to run?
 
Old September 26th, 2003, 12:54 PM
Registered User
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried capitolizing time and text. It didn't work. And yes, this is the first thing I've tried with ASP.NET. The book I'm using has a lot of stuff it wants me to install, so I have a feeling I may have messed up there.

 
Old September 26th, 2003, 12:56 PM
Registered User
 
Join Date: Sep 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Any suggestions?

 
Old September 26th, 2003, 01:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Try this:

1) Open a command window. (Click Start, click Run, type cmd, and then click OK.)
2) Navigate to the directory of the Aspnet_regiis.exe version you want to use. Remember that each version of the .NET Framework comes with its own version.

The file is usually located in the following directory:
for XP c:\windows\Microsoft.NET\Framework\<versionNumber>
for 2000 c:\winnt\microsoft.net\framework\<versionNumber>

Then type aspnet_regiis.exe -i
 
Old September 27th, 2003, 07:27 AM
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I was also having this problem... it was showing the text but not the time.

I just ran the install for that aspnet_regiis.exe file, as you said, and the problem is now fixed, thank you.

I thought that by installing MS Visual Studio .NET it installed all the necessary asp server applications??? Evidently not.











Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.