S
shapper
Hello,
I am creating a user control where an Asp.Net control is used. It can
be either a button, an image button or a label.
I am trying to "expose" the Asp.Net control properties and events in
the page where the user control is used.
For that I defined a property as follows:
Private _Control As Control
Public Property Control() As Control
Get
Return _Control
End Get
Set(ByVal value As Control)
_Control = value
End Set
End Property ' Control
The problem is that the type of control that the User Control will
create and use depends of another User Control named property.
So, should I create 3 properties in my User Control of the 3 different
types: Button, ImageButton and Label?
Thanks,
Miguel
I am creating a user control where an Asp.Net control is used. It can
be either a button, an image button or a label.
I am trying to "expose" the Asp.Net control properties and events in
the page where the user control is used.
For that I defined a property as follows:
Private _Control As Control
Public Property Control() As Control
Get
Return _Control
End Get
Set(ByVal value As Control)
_Control = value
End Set
End Property ' Control
The problem is that the type of control that the User Control will
create and use depends of another User Control named property.
So, should I create 3 properties in my User Control of the 3 different
types: Button, ImageButton and Label?
Thanks,
Miguel