Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 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 May 6th, 2008, 10:12 PM
Registered User
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to xtiano77
Default Problem with Chapter 2 First Page

Hello.

I am really interested in learning ASP.NET and eventually setting up my own websites and maybe one for my office. So far I have become proficient with XHTML and CSS, but I am having a bit of trouble following along creating the first page in chapter 2.

I typed "Label1.Text = "Hello world; the time is now " & DateTime.Now.ToString()" like the book says, but I cannot get the page to come up. The error list tells me that there is an error with "Label1" not being declared. Can anyone help me with this? Another question if I may. Should I pick up a book and learn Visual Basic and or C# before trying this book or is it sufficient with just XHTML and CSS? Thanks in advance for your help with question.

MV
 
Old May 7th, 2008, 01:00 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

What book is this about? You posted in a generic ASP.NET book, but you're better off posting this in a book specific forum. If it's about Beginning ASP.NET 3.5, would you mind posting the question again in its forum here: http://p2p.wrox.com/forum.asp?FORUM_ID=386

That makes it easier for everyone (including future readers) to keep track of posts.

That said, take a look at the Markup section of the page. Do you have a Label control in there? Does it have the same casing as Label1?

If that doesn't help, can you post the relevant code for the page and its code behind?

With regards to programming: the Beginning book has chapter 5 devoted to programming in C# and VB. Obviously, a single chapter is not enough to make you an all-round chapter, so it's worth looking into other programming books as well as they can provide you with a lot more detail. Beginning C# 2008 or Beginning VB 2008 would be an excellent start.

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 3 page 95 nead23 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 2 March 26th, 2009 09:28 AM
Chapter 9, page 304 Again AspNetGuy BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 June 15th, 2008 02:57 PM
Chapter 7 - page 212 asplundo BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 3 February 2nd, 2008 06:56 AM
Chapter 4 - page 170 stzd8 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 November 5th, 2006 12:04 AM
Page 352 (Chapter 11) IDisposable Problem sosborne BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 August 18th, 2006 05:12 PM





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