We help IT Professionals succeed at work.
Get Started

How do you handle LCID issues in ASP.Net?

sybe
sybe asked
on
1,465 Views
Last Modified: 2013-11-05
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.


Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE