Check out JobNimbus - CRM for Contractors and Service Professionals.
Internationalize / Localize ASP.NET Javascript
I ran across an interesting presentation today on how to internationalize javacripts in ASP.NET. The presentation was given in January 2008 by Guy Smith-Ferrier and is a continuation based on his article in MSDN Magazine from January 2008 called Around the World with ASP.NET AJAX Applications.
You can download it as a PDF here.
One thing I found further today to localize a resource in javascript is that you can actually load a resource string directly into a javascript string directly.
You can reference a string in a resource assembly with this javascript syntax:
var myResourceString = '<%= MyResourceAssemblyName.SharedResources.strHelloWorld %>';MyResourceAssemblyName is the name of the Assembly where your resource string is located. SharedResources is the name of the .resx file in the assembly that contains the string. strHelloWord is the ID of the resource string to retrieve.
Of course, this code needs to be embedded in an .ASPX page so that it can be interpreted when served because .js files are not parsed by the ASP.NET runtime.
Popular Articles
Last viewed:
- Installing an SSL / TLS certificate on Windows Server 2008
- Office 2007 Change Default Document Save Type
- Tutorial for Configuring Silverlight 4, Entity Framework and WCF RIA Services in Separate Component Assemblies (DLL’s)
- ASP.NET Charting Control 3.5 fix for "Error executing child request for ChartImg.axd"
- How to back up windows with Bacula
- SQL Server Log File (AKA LDF file) is huge - reduce size

Recent comments
9 hours 14 min ago
1 day 4 hours ago
3 days 51 min ago
4 days 4 hours ago
4 weeks 6 days ago
4 weeks 6 days ago
6 weeks 12 hours ago
6 weeks 15 hours ago
6 weeks 1 day ago
9 weeks 12 hours ago