User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 402,688 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,394 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting

Object reference not set to an instance of an object.

Join Date: Nov 2006
Location: Nasik-India
Posts: 21
Reputation: sierrasoft is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
sierrasoft sierrasoft is offline Offline
Newbie Poster

Re: Object reference not set to an instance of an object.

  #3  
Apr 11th, 2008
This error occurs when you don't use the "New" keyword to instantiate the Object. Your code should be either of the following 2:
Dim cart as New Cart
OR
Dim cart as Cart
cart = New Cart

Regards
Sunil Punjabi
Reply With Quote  
All times are GMT -4. The time now is 5:09 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC