Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to reference a control in user control?
Message
 
 
À
04/02/2010 10:42:39
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01447396
Message ID:
01447497
Vues:
21
>Dmitry,
>
>>does it mean that I have to subclass this control and create it in code in a .CS file?
>
>No, not at all. You already have the .cs file where you will put your code. When you created your UserControl, the IDE generates the MyUserControl.Designer.cs, but you also have the MyUserControl.cs ... it is in *this* file where you add any code you wish to give your class more funtionality. This is where you'd put additional methods and other member variables.
>
>~~Bonnie
>

Thank you! Fasten your seat belts; I am about to do it <g>.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform