Author: redtoffey | Posted on: 12/4/2008 8:35:33 AM | Views : 518

 Hi there,
 I have created a custom web control, aptly name MyLinkButton. The ascx looks like this:
<asp:LinkButton ID="lnkLinkButton" runat="server" OnClick="lnkLinkButton_Click" OnCommand="lnkLinkButton_Command">
    <span>
        <asp:Literal ID="ltlLinkText" runat="server" />
    </span>
</asp:LinkButton>
 When you set any of it's properties, it internally sets the property of the lnkLinkButton control with the exception of the Text property as this sets the text for the literal ltlLinkText control.
        public string CssClass
        {
            get { return lnkLinkButton.CssClass; }
      ...

Go to the complete details ...