troubleshooting Question

How do you handle LCID issues in ASP.Net?

Avatar of sybe
sybe asked on
2 Comments1 Solution1467 ViewsLast Modified:
Just switched from Classic ASP to ASP.Net.

I am a bit lost in how to use to handle to LCID setting in ASP.Net. Most application I write are for a Dutch audience (LCID = 1043). On the other hand I don't want to have everything in Dutch while developing, because that also produces error messages in Dutch and those are quite useless when searching on error messages.

In Classic ASP (VBScript) I did often use the SetLocale function. The good thing of that is that it can be changed for every line of code. The SetLocale function seems not to be available in ASP.Net.

My question: how do you handle LCID issues in ASP.Net.

To be more concrete, in the following case:

The application sends an email. The email is in Dutch. The email contains date, which come from a database and need to be formatted with Dutch LCID (with the FormatDateTime() function). But - as I said - if there are any runtime errors on the page, I want to see them in US-EN.


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros