Webtologist
asked on
SkinID Property in Custom Control
I am trying to create a custom server control that inherits from Web.UI.Control (not WebControl). SkinID is available in the base object, however it is not exposed in the custom control. I've even tried exposing the property by just overriding the property:
Public Overrides Property SkinID() As String
Get
Return MyBase.SkinID
End Get
Set(ByVal value As String)
MyBase.SkinID = value
End Set
End Property
But this still does not expose the property. How do get this property to appear in the designer and even opens the dialog too like?
Public Overrides Property SkinID() As String
Get
Return MyBase.SkinID
End Get
Set(ByVal value As String)
MyBase.SkinID = value
End Set
End Property
But this still does not expose the property. How do get this property to appear in the designer and even opens the dialog too like?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
Usually you should be opening up another question for this as you are depriving someone of points...
But you need to create a new Skin for your new custom control because the tags won't match anymore.
ie your standard control is for example
<asp:Panel
your new one will be <cc:CustomControl
So you can't use the same Skin for a CustomControl that you do for a Standard Control.
S
Usually you should be opening up another question for this as you are depriving someone of points...
But you need to create a new Skin for your new custom control because the tags won't match anymore.
ie your standard control is for example
<asp:Panel
your new one will be <cc:CustomControl
So you can't use the same Skin for a CustomControl that you do for a Standard Control.
S
ASKER
Now I get this error:
The SkinID value is not defined the theme or stylesheet theme
I do have a theme assigned to the page and I can assign it to another standard web control.