Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing user controls
Message
De
16/04/2002 22:25:01
 
 
À
16/04/2002 16:02:48
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00645686
Message ID:
00645783
Vues:
12
>All,
>
>I have a user control that I want to subclass. From VS, I create another user control, go into the code-behind page and change the Inherits to the class I want to inherit from. Do I need to do anything else? When I save the new subclass and reopen it I get a message stating that the control could not be opened in the Web Form Designer and that an object reference was not set to an instance of an object.
>
>What am I doing wrong?
>
>TIA
>
>Rex

I think there is code in the .aspx page that creates a reference to the parent class assembly. It will be at the top of the page in yellow. The code will be in ASP delimiters... < % % >. Make sure you change that too.


BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform