Recent Articles

ASP.NET Security: Remove The X-AspNet-Version Header
I've always been a little annoyed by the fact that ASP.NET websites sends the version number as a HTTP header. For an ASP.NET 2.0 application this is added automatically to the headers and you cannot remove it from code.

ASP.NET: Don't Use The ThreadPool
I've always been a big fan of using the ThreadPool for asynchronous execution, but in ASP.NET it is not the best approach for multi-threading. I'm not writing about...

Top Application Security Vulnerabilities In...
Some of the most common and dangerous application security vulnerabilities that exist in ASP.NET Web-based applications come not from the C# or VB.NET code that make up its pages and service methods, but...

BlogEngine.NET 1.0 Officially Released
We released the first version of BlogEngine.NET for anyone to download and use. This is very exciting to me because I've spent many hours during the last...

Application Security Vulnerabilities In Web.config Files
These days, the biggest threat to an organization's network security comes from its public Web site and the Web-based applications found there. Unlike internal-only network services such as databases-which can be...

BlogEngine.NET: Events In The File & Image Handlers
In BlogEngine.NET, all files and images that are inserted on a post will be served using an HttpHandler. Actually, they are served by FileHandler and ImageHandler...

07.13.07


Localizing ASP.NET (Which Is Best?)

By Mads Kristensen

There are different approaches to localizing an ASP.NET application. You can use a global resource file or local ones.

The local resource files only applies to a single page or user control, whereas the global can be used from anywhere.

I've always used the global resource file located in the App_GlobalResources folder.

I like that I can use all the text strings wherever I want.

However, I have never used a local resource file for a specific page or user control for that very same reason.

Lately though, I've thought that the local resource file might be good for some specific scenarios.

For instance if I know that a particular string is only going to be used on one specific page, then I don't clutter the global resource file with page specific strings.

Learn How We Increased Conversion By 816% and Become A Certified Online Testing Professional™ Click Here

However, then the information is spread over multiple files instead of just the global ones.

It reminds me about HTML style attributes and stylesheets.

Is it ok to hardcode styles directly onto a page if the same style is not being implemented anywhere else?

In my opinion yes, sometimes it makes sense, but I'm generally against it just like I've been against using local resource files.

Do you use local resources and if so, why have you chosen that instead of a global file?

Comments


About the Author:
Mads Kristensen currently works as a Senior Developer at Traceworks located in Copenhagen, Denmark. Mads graduated from Copenhagen Technical Academy with a multimedia degree in 2003, but has been a professional developer since 2000. His main focus is on ASP.NET but is responsible for Winforms, Windows- and web services in his daily work as well. A true .NET developer with great passion for the simple solution.

http://www.madskristensen.dk/

About WebProASP
WebProASP is a collection of up to date tutorials and insightful articles designed to help ASP users of any skill level implement successful ASP systems and practices. ASP Strategies and Tactics for Business

WebProASP is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQlProNews.com
ITcertificationNews.com SysAdminNews.com
WebProASP.com WirelessProNews.com
CProgrammingTrends.com ITManagementNews.com




-- WebProAsp is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2007 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article



ASP Strategies and Tactics for Business WebProASP News Archives About Us Feedback WebProASP Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact