Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 27th, 2004, 09:11 PM
Registered User
 
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Beginning ASP.NET 1.1 code question

I'm having fun picking up ASP.NET for the fun of it. Been a couple of years since programming.

The following seems to work on the Web Matrix (i.e. it displays the time) but on IIS the time is not displayed.

Right now on IIS I only get "In WebServerLand the time is currently:" when I run it on IE. I also get a warning about an 'unterminated string constant in IE.

Any troubleshooting tips? I'd rather insure I have everything working from 'Chapter 1' on rather than just skipping anything. My target web server will eventually be IIS for my little hobby project.

<%@ Page Language="VB" %>
<script runat="server">

    ' Insert page code here
    '
    Sub Page_Load()
    time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
    End Sub

</script>
<html>
<head>
</head>
<body>
    <form>
        In WebServerLand the time is currently:
        <asp:Label id="time" runat="server" />
    </form>
</body>
</html>

 
Old September 27th, 2004, 09:50 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Well, I didn't get any errors and I copied your code exactly. The only thing that I would have differently was this:
Quote:
quote:Originally posted by databaseninja


<asp:Label id="time" runat="server" />
Change it to:

<asp:Label id="time" runat="server"></asp:Label>

So unless it is a shorthand notation that I am not aware of, but I didn't get an error either way.

J
 
Old September 27th, 2004, 10:19 PM
Registered User
 
Join Date: Sep 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This forum is great. I should have searched more. I found the solution by implementing changes described in http://support.microsoft.com/default...;en-us;Q306005

Basically I had to fix IIS mappings for ASP.NET

Thanks for looking.

 
Old September 28th, 2004, 01:18 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Under the rules of XML there is no difference between

<this></this>

   and

<this />

If your tag doesn't contain anything, there's no reason to have a separate close tag.





Similar Threads
Thread Thread Starter Forum Replies Last Post
the code for Beginning ASP.NET Databses using C#? j4cky Classic ASP Databases 8 June 4th, 2007 11:11 PM
The code of "Beginning ASP.NET E-Commerce with ... 2003 Wrox Book Feedback 35 August 4th, 2006 04:56 AM
Can'T find code to Beginning Asp.net using VB.NET darruler All Other Wrox Books 1 August 12th, 2004 05:04 PM
Help 'beginning asp.net using vb.net' source code jkmf Wrox Book Feedback 1 January 18th, 2004 08:09 AM





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