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 February 1st, 2004, 12:23 PM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beginning ASP

Hi

I have justed started to learn ASP and am trying to run the simple piece of code below. However when i run this code the message is displayed and not the time. If anyone has any help on this it would be much appreciated.

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


 
Old February 1st, 2004, 04:34 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Have you installed the .Net framework?

You can get it here:
http://www.asp.net/webmatrix/download.aspx?tabindex=4


 
Old February 2nd, 2004, 12:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

What is in your Page directive?

My guess is that you have AutoEventWireUp set to false. Try setting it to true like:

<%@ Page Language="vb" AutoEventWireup="true" %>

and see if that works.

When it is set to false it is looking in your code-behind file.

J





Similar Threads
Thread Thread Starter Forum Replies Last Post
ch15 adduser.asp problem beginning asp 3 ellie Access 1 December 30th, 2004 01:49 PM
After "Beginning ASP 3.0" what? nikrene BOOK: Beginning ASP 3.0 1 November 10th, 2004 09:13 AM
Beginning ASP 3.0, Chapter 12 (Connect.asp). Richard LaChance BOOK: Beginning ASP 3.0 4 July 24th, 2004 04:12 PM
Beginning ASP 3.0 Stingray51 Wrox Book Feedback 2 July 15th, 2004 06:25 AM





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