Last post Nov 03, 2013 03:03 PM by smirnov
Member
19 Points
32 Posts
Nov 02, 2013 04:47 PM|badar1983|LINK
I had asp.net website built using html controls which i want to convert to multi language i.e. ARABIC and ENGLISH,
my question is can i use HTML controls for localization and how can i use resource files keys
please explain me using an simple example,
thanks in advance
All-Star
35159 Points
9075 Posts
Nov 02, 2013 05:47 PM|smirnov|LINK
One of the way you can localize asp.net controls is
<asp:Label ID="Label2" Runat="server" Text="<%$ Resources:LocalizedText, Msg1 %>"></asp:Label>
where <%$ Resources:LocalizedText, Msg1 %> is a reference to Msg1 key in LocalizedText.resx
I think, in same way you can localize everything.
Read more here http://msdn.microsoft.com/en-us/library/fw69ke6f(v=vs.100).aspx
Nov 03, 2013 06:20 AM|badar1983|LINK
can I use HTML controls for localization in asp.net
Nov 03, 2013 03:03 PM|smirnov|LINK
just inject <%$ Resources:LocalizedText, Msg1 %> everywhere you need including html controls
Member
19 Points
32 Posts
using resource files in html controls for localization
Nov 02, 2013 04:47 PM|badar1983|LINK
I had asp.net website built using html controls which i want to convert to multi language i.e. ARABIC and ENGLISH,
my question is can i use HTML controls for localization and how can i use resource files keys
please explain me using an simple example,
thanks in advance
All-Star
35159 Points
9075 Posts
Re: using resource files in html controls for localization
Nov 02, 2013 05:47 PM|smirnov|LINK
One of the way you can localize asp.net controls is
<asp:Label ID="Label2" Runat="server" Text="<%$ Resources:LocalizedText, Msg1 %>"></asp:Label>
where <%$ Resources:LocalizedText, Msg1 %> is a reference to Msg1 key in LocalizedText.resx
I think, in same way you can localize everything.
Read more here http://msdn.microsoft.com/en-us/library/fw69ke6f(v=vs.100).aspx
Member
19 Points
32 Posts
Re: using resource files in html controls for localization
Nov 03, 2013 06:20 AM|badar1983|LINK
can I use HTML controls for localization in asp.net
All-Star
35159 Points
9075 Posts
Re: using resource files in html controls for localization
Nov 03, 2013 03:03 PM|smirnov|LINK
just inject <%$ Resources:LocalizedText, Msg1 %> everywhere you need including html controls