Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error in code - with Stored Proc
Message
De
27/07/2004 11:31:23
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00928301
Message ID:
00928328
Vues:
24
Shawn,
On which line of your code, exactly, are you getting this error? If it's in the line referencing this.oCompany, I would agree with the others -- you haven't instantiated the object you're storing in that field.

When you say that you're typing this.oCompany and Intellisense kicks in, displaying methods, etc. are you saying that happens in design mode or runtime?

Keep in mind that at design time, Intellisense is basing its list on the fact you've most likely defined your oCompany field as type Company -- and populates the list from the assembly that contains that class definition. It has nothing to do with instantiation at runtime... you still have to populate the field with an object reference.

Hope that helps,
---J

>I keep getting this error and i can't make any sense from it.
>I have reviewed the line in error and it makes no sense to my why it is saying this :
>"Object reference not set to an instance of an object."
>
>
>P.S. if i do :
>this.oCompany the intellisense picks up the object and its methods
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform