D
Dave
Hi,
I'm trying to create a custom Linkbutton control by inheriting from WebControls
[ToolboxData("<{0}:MyLinkButtonrunat=server></{0}:MyLinkButton>")]
[ParseChildren(false)]
public class MyLinkButton: WebControl , IPostBackEventHandler
.....
I define my control in the aspx as:
<CustomControls:MyLinkButton id="lbtnGetData" CssClass="LinkButton" runat="server" >View Data</CustomControls:MyLinkButton>
However, the value in CssClass seems to be ignored and "class=" is not outputed to the HTML? Is there something else I need to implement?
Any help would be appreciated..Thanks, Dave.
I'm trying to create a custom Linkbutton control by inheriting from WebControls
[ToolboxData("<{0}:MyLinkButtonrunat=server></{0}:MyLinkButton>")]
[ParseChildren(false)]
public class MyLinkButton: WebControl , IPostBackEventHandler
.....
I define my control in the aspx as:
<CustomControls:MyLinkButton id="lbtnGetData" CssClass="LinkButton" runat="server" >View Data</CustomControls:MyLinkButton>
However, the value in CssClass seems to be ignored and "class=" is not outputed to the HTML? Is there something else I need to implement?
Any help would be appreciated..Thanks, Dave.