D
dm_dal
I'm building a custom web control and was looking at was to add css style
attributes to my tags. Can I implement a "Style Builder" for my custom
control?
I tried creating a property in my control (C#)
<snippit>
private CssStyleCollection _style;
[Browsable(true),Category("Appearance")]
public CssStyleCollection Style
{
get
{
return _style,
}
set
{
_style = value;
}
}
When I place the control on an aspx page, the Style attribute in the design
properties page is greyed out. When I right click on the placed control,
the context menu show the "Build Styles" menu item, but it too is greyed
out.
Is there a way to do this?
attributes to my tags. Can I implement a "Style Builder" for my custom
control?
I tried creating a property in my control (C#)
<snippit>
private CssStyleCollection _style;
[Browsable(true),Category("Appearance")]
public CssStyleCollection Style
{
get
{
return _style,
}
set
{
_style = value;
}
}
When I place the control on an aspx page, the Style attribute in the design
properties page is greyed out. When I right click on the placed control,
the context menu show the "Build Styles" menu item, but it too is greyed
out.
Is there a way to do this?