Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > BOOK: Beginning ASP.NET 1.1
|
BOOK: Beginning ASP.NET 1.1
This is the forum to discuss the Wrox book Beginning ASP.NET 1.1 with Visual C#.NET 2003 by Chris Ullman, John Kauffman, Chris Hart, Dave Sussman, Daniel Maharry; ISBN: 9780764557088
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning 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 August 18th, 2005, 12:13 AM
Registered User
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Question: Chapter 3 page 93 ASP.NET w/ VB.NET

Hello everyone,

I keep getting the following compilation error: BC30456: 'Text' is not a member of 'System.Web.UI.HtmlControls.HtmlGenericControl'.

Here is my code. The error occurs on line 13:

<script language="vb" runat="server">

Sub Page_Load()
    Dim CapitalCityofUK As String
    Dim NumberOfStates As Integer
    Dim IndependenceDay As Date

    CapitalCityofUk = "London"
    NumberOfStates = 50
    IndependenceDay = #7/4/1776#

    lblCapital.Text = CapitalCityofUK
    lblNumStates.Text = NumberOfStates
    lblDateIndependece.Text = IndependenceDay

   End Sub
</script>
<html>
<head>
    <title>Creating Variable Examples</title>
</head>
<body>
    The contents of CapitalCityofUk is:
    <asp:label id="lblCapital" runat="server" />
    <br>The contents of NumberOfStates is:
    <asp.label id="lblNumStates" runat="server" />
    <br>The Contents of IndependenceDay is:
    <asp:label id="DateIndependence" runat="server" />
</body>
</html>

Any help would be appreciated - I'm copying it straight out of the book and just can't figure out what I'm doing wrong.

Thanks!

Barry

 
Old August 18th, 2005, 12:18 AM
Registered User
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

NEVER MIND!

Third time of typing it in seemed to be the charm - its working now.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse XML doc using VB.NET into ASP.NET page kwilliams Classic ASP XML 17 November 11th, 2005 10:42 AM
ASP.NET 1.1 with VB.NET 2003 chapter 1 subroger Wrox Book Feedback 2 November 11th, 2004 12:52 PM
Beg. ASP.Net eCommerce with VB.Net - Chapter 5 James Hendrix All Other Wrox Books 0 October 22nd, 2003 10:45 PM
Errors in Chapter 1?? ASP.NET 1.0 with VB.NET jaksel BOOK: Beginning ASP.NET 1.0 2 August 18th, 2003 01:02 AM





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