Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Property not visible in Subclass.
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00827112
Message ID:
00827749
Vues:
13
Hi Fred,

The Customer class needs to be wrapped in a namespace and then that namespace referenced in a using statement when instantiating the Customer object.

>Yes, Customer does end with (). I was cutting comments out of my code when I pasted it here. I cut too much. I tried building (and rebuilding) the projects with no luck.
>
>>>using System;
>>>using System.Data;
>>>using System.Data.SqlTypes;
>>>using System.Data.SqlClient;
>>>
>>>#namespace paisap
>>>{
>>>public class clsCustomer : clsDBInteractionBase
>>>{
>>> public SqlString cCutomerName2
>>>
>>>snip....
>>>
>>>*** My class starts like
>>>using System;
>>>using System.Data
>>>using System.Data.SqlTypes;
>>>using System.Data.SqlClient;
>>>using paisap;
>>>
>>>public class Customer : clsCustomer
>>>{
>>>/// just use the base class
>>>}
>>>******************************************************
>>>C# program.
>>>
>>>using System;
>>>using System.Data;
>>>using System.Data.SqlTypes;
>>>using System.Data.SqlClient;
>>>
>>>Customer CustObj = new Customer;
>>>CustObj. ////Does not show any properties (members)
>>>
>>
>>Shouldn't it be Customer CustObj = new Customer();
>>Also, have you already built the class w/ the new property. The intellisense doesn't work until you have built that project.
>>
>>Morgan
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform