Last post Jul 09, 2008 04:48 AM by AkshayAWip
May 07, 2008 02:13 PM|mchambaud|LINK
Hello! I'm new to C#.NET and I'm trying to make a web site with multiple locales... I've successfully done it with all my asp.net tags but how can I do it with the text in the cs code?
<asp:Label ID="someLabel" runat="server" Text="<%$ Resources:someResField %>" />
May 08, 2008 04:46 AM|DigiMortal|LINK
May 08, 2008 07:27 AM|mchambaud|LINK
this.GetGlobalResourceObject(string className, string resourceKey)
use Convert.ToString(..); to use in control.text
Jul 09, 2008 04:48 AM|AkshayAWip|LINK
If you want to work with global resource file then reading the file is very simple
string value = Resources.<fileName>.<key>;
fileName and key comes by intellisence if you have the file under App_GlobalResources.