Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.0
This is the forum to discuss the Wrox book Beginning ASP.NET 1.0 with C# by Chris Goode, John Kauffman, Christopher L. Miller, Neil Raybould, S. Srinivasa Sivakumar, Dave Sussman, Ollie Cornes, Rob Birdwell, Matt Butler, Gary Johnson, Ajoy Krishnamoorthy, Juan T. Llibre, Chris Ullman; ISBN: 9780764543708
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.0 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 28th, 2006, 12:29 PM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default A Problem of punctual.aspx

When I run the first object(punctual.aspx)
I'll get a same problem

Compilation Error
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: CS0246: The type or namespace name 'time' could not be found (are you missing a using directive or an assembly reference?)

Source Error:



Line 4: void Page_Load()
Line 5: {
Line 6: time.Text=DateTime.Now.ToString();
Line 7: }
Line 8:

I think what I input is right, but...
I am running Windows XP Pro, .NET Framework v1.1.4322.
Any help would be greatly appreciated..
 
Old February 28th, 2006, 07:54 PM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm assuming "time" is a label and your trying to assign the current time to it.

Did you define the proper namespace?
Did you define your time object?
Try "time.Text=System.DateTime.Now.ToString();"

Also you may want to consider renaming your Variable, perhaps something like "currentTime" would be more suitable.

Here's a link outlining the Error you have recieved: http://support.microsoft.com/default.aspx?kbid=304656

- A.Kahtava
 
Old March 1st, 2006, 04:17 AM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've solved the problem.
Thank you for your advice^^






Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie Problem - Ch01 punctual.aspx wendyhod BOOK: Beginning ASP.NET 1.0 2 September 8th, 2005 03:18 PM
Ch01-punctual.aspx ywagshul BOOK: Beginning ASP.NET 1.0 2 August 15th, 2005 01:23 PM
Chapter 1. Punctual.aspx dad62896 BOOK: Beginning ASP.NET 1.0 9 January 27th, 2004 01:11 PM





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