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 April 28th, 2004, 05:06 AM
Authorized User
 
Join Date: Apr 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Namespace reference

I’m using different objects in my .vb file. Here is the code.
Dim currentdate As DateTime
Dim myForm As Control = Page.FindControl("Tips_Tricks")
DBNull.Value

I’m getting compilation error (Type 'DateTime' is not defined)for all these above statements. I’m sure some namespace need to be imported inside the page. Can any one tell me which are these namespaces.
Also suggest some good reference guide for using namespaces.

Apry

 
Old April 28th, 2004, 07:36 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

DateTime and DBNull is in the System namespace.
Control is in the System.Web.UI namespace

Not sure why you would be getting errors. Are you using VS.NET, and if so, is the System namespace in the references list in the solution explorer? I thought by default it is.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
What is ".Namespace" ?! Employee C# 2 May 14th, 2008 10:55 AM
Namespace help CamosunStudent BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 October 6th, 2006 04:12 PM
Namespace CamosunStudent ASP.NET 2.0 Basics 0 October 4th, 2006 06:57 PM
Namespace flute Pro VB.NET 2002/2003 2 October 21st, 2003 09:15 AM
namespace shortynelson C# 2 September 9th, 2003 03:14 AM





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