0

I have created a custom culture for client-specific language, i.e. I have resx files for that culture. The issue I have is that I can't seem to set the culture early enough in the page cycle. By the time I call Thread.CurrentThread.CurrentUICulture = culture and Thread.CurrentThread.CurrentCulture = culture the page seems to already have picked the language from the base resx file :( So I'm having to set the culture and then redirect back to the same page? I've tried setting it in the Page_PreInit and its still not early enough? Is there an earlier event I can hook into?

Bernard
  • 1,983
  • 4
  • 18
  • 27

1 Answers1

1

You need to override the page's InitializeCulture() method, look here for details.

Manu
  • 28,753
  • 28
  • 75
  • 83