Concatenating text in an ASP.NET localized label
Posted
by James B
on Stack Overflow
See other posts from Stack Overflow
or by James B
Published on 2010-06-02T20:38:03Z
Indexed on
2010/06/02
21:04 UTC
Read the original article
Hit count: 422
ASP.NET
|localization
Trying to localize text in ASP.NET labels... want to add a ':' after the localized text. I could just add the ':' to the localized text in the resource file, but that seems silly... there should be an easy way to do this.
<asp:Label id="RoleTypeLabel" runat="server" Text='<%$ Resources: GS3, RoleTypeLabel %>:' AssociatedControlID="RoleTypeDropDown"></asp:Label>
(note the ':' at the end of Text='...')
Of course, this doesn't work... and neither does anything I can think of to concatenate a ':' onto the end of the localized text.
Anyone know how to do it?
TIA, James
© Stack Overflow or respective owner