Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 June 30th, 2006, 10:08 AM
_l_ _l_ is offline
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with first test examples

hi every body,
can u explain for me why this happened to me?
at the first test example, i typed code like this
          void Page_Load()
     {
        time.Text=DataTime.Now.ToString();
      }
but when i press F5 to try , it annouced that

The type or namespace name 'DataTime' could not be found (are you missing a using directive or an assembly reference?)

what happen to me, can u help me?

thanks u alot

 
Old July 5th, 2006, 09:42 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Im not sure you can name a textbox 'time'. I believe that it is a reserved keyword. Try doing something like this:

    txtTime.text = Now.ToString();

remember to rename your textbox.

"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with variable in test condition bartnowa XSLT 3 December 20th, 2007 07:31 AM
xsl:when test - comparison problem pelicanPaul XSLT 1 June 29th, 2007 04:45 AM
[resolved] Trinidad & Tomcat Problem with examples pouet Apache Tomcat 1 May 11th, 2007 09:27 AM
Test MYSQL PROBLEM jhan316 MySQL 2 June 26th, 2006 03:46 AM
Problem with examples in Access 2002 VBA tcarnahan BOOK: Beginning Access VBA 0 January 26th, 2004 08:14 PM





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