DotNetNuke Modules – LinkButtons

As you can probably already guess, localizing a LinkButton in DotNetNuke is pretty straightforward. But you’ll never guess what most people miss when they add this little control to their DotNetNuke module.

Just like the ASP:Label control, internationalizing a LinkButton is a simple as adding a resourcekey attribute to the control. That much works just like the label control.

But what most people don’t find out until they try to apply a skin and find out that their link button doesn’t look anything like the other link buttons in DotNetNuke, is that you also have to set the cssClass attribute to “CommandButton”.

So, a LinkButton that would normally look something like this:

<asp:LinkButton ID="linkButton1"
runat="server" Text="Link Text" />

Will end up looking more like this:

<asp:LinkButton ID="linkButton1" resourcekey="linkButton1"
runat="server" cssClass="CommandButton">Optional Link Text</asp:LinkButton>

As I explained last Wednesday, I don’t always put in default text, but in this case, I think it might be wise to put in something.

 


Other post in DotNetNuke - Module Development

Other Related Items:

Lewis Structure Module - Downloadable SoftChemistry Education SoftwareLewis Structure Module - Downloadable SoftChemistry Education SoftwareThis is a Chemistry Education Software for online download version only. Basics Chemical Bond & Lewis Structure Module Overview This Structures and B... Read More >
APC KVM PS/2 Server Module - KVM extender - externalAPC KVM PS/2 Server Module - KVM extender - externalThis is a server module for VGA video, PS/2 keyboard and mouse.

Related Post

Comments are closed.

DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor