Wrox Programmer Forums
|
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 May 2nd, 2005, 04:00 PM
Registered User
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Two Problems

I have just purchased this book and have completed (I hope) the installation of Web Matrix and .NET Framework (I already have XP Pro SP2).
1. When I try to open the web browser from within Web Matrix a message keeps telling me that the port is already open. How do I resolve this?
2. I have set up all the bits to create my first ASP page as in Chapter 1, but when I open the page it comes back with an error message as follows

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30456: 'text' is not a member of 'System.Web.UI.HtmlControls.HtmlGenericControl'.

Source Error:



Line 3:
Line 4: sub page_load()
Line 5: time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
Line 6: end sub
Line 7:


Source File: C:\BegASPNET11\ch01\punctual.aspx Line: 5

Can anyone tell me what is wrong?

TIA

Mark
 
Old May 2nd, 2005, 11:07 PM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

First of all, Let me know What type of control is time.
It seems to me that it is not a label or text. I think you have made a HTML control/Table cell runat="server".
For such HtmlGenericControls you don't have the Text property instead you have the "innertext" or "innerHtml" property.
Try to use any of these properties.

 
Old May 2nd, 2005, 11:17 PM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default

For you first Problem.
When run your page first you will be shown a start web application window , are you seein it?
If yes, you select the Use Asp.Net web matrix server.
Now you see one textbox with application port no showing "8080",
Problem in running in this port, some other application is configured to this port, So change this port No to say 8081... and start.

 
Old May 3rd, 2005, 02:21 PM
Registered User
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the info - I discovered that for 1. I had already got the browser open at another resource.
2. I had copied the code from the book and that appears wrong or it is not clear how to construct the code. When I downloaded the code from the Wrox site everything seemed to work.
Trial and error is the name of the game when new to something.
Cheers

Mark






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems already! KennySargent BOOK: Professional XNA Programming 2nd Edition ISBN: 978-0-470-26128-6 4 April 7th, 2008 03:36 AM
Have 2 problems so far... Soulcatcher BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 June 20th, 2007 12:57 PM
c problems saurabh1983in C++ Programming 6 November 29th, 2005 04:23 AM
validate.asp problems and logon.asp problems p2ptolu Classic ASP Databases 0 February 16th, 2005 02:34 PM
Problems kilika Javascript 1 October 3rd, 2003 02:42 AM





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