ASP.NET Localization

  • Thread starter Thread starter Dan Cimpoiesu
  • Start date Start date
D

Dan Cimpoiesu

How do I achieve this:

I have an ASP.NET application
I create a custom CultureInfo instance with the NumberFormat setted up by me
at runtime.
I want to apply this CultureInfo to all pages.
I tried with (in Windows Forms it works)

System.Threading.CurrentThread.CurrentUICulture=myCulture
System.Threading.CurrentThread.CurrentCulture=myCulture

in the Session_Start but it does not take my formattings in the pages

Ant suggestions?
 
I vaguely think I remember something about setting currentculture before
currentuiculture, not sure
 
You should be able to write it in Application_BeginRequest in global.asax
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top