Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to reference a control in user control?
Message
 
 
To
04/02/2010 10:42:39
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01447396
Message ID:
01447497
Views:
22
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform