Setting UIculture in code

K

Klaus Jensen

Hi

This question relates to ASP.Net 1.1 - NOT 2.0

I want to set a site-wide UIculture from code. I know it can be set in
web.config, but can it be set in code? For instance in Application_onstart.

All other configuration is stored in a database for these sites (20+), and I
want to be able to put the UIculture in there as well.
 
B

Brock Allen

You should set it in global.asax in the Application_BeginRequest if it's
the same for every user, or in Application_AuthenticateRequest if it's different
for each user, or in Application_AcquireRequestState if you need to load
the info from Session state.
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top