09 September 2008

Extend HyperLink Control Usage in ASP.Net

Code implementation like below [wrapping controls within control] enabled user to control the image size because it is an individual tag. If we need to hide the link base on certain condition,simply set the visibility of "linkNewEmail" to false. Whole hyperlink+image+label will be invisible because it treat as one component.

  <br /><asp:HyperLink ID="linkNewEmail" runat="server" NavigateUrl="Default.aspx"><br /><asp:Image ID="Image2" runat="server" ImageUrl="icoNewTemplate.gif"/> <br /><asp:Label ID="Label3" runat="server" Text="New Email Template"></asp:Label><br /></asp:HyperLink><br />


Post a Comment