CultureInfo

T

TomislaW

I try to find out where my users from in Global.asax
Application_BeginRequest,

but why all users on my web application have same values for:

Thread.CurrentThread.CurrentCulture.Name

and

Thread.CurrentThread.CurrentUICulture.Name
 
T

Tom.PesterDELETETHISSS

Hi,

Thread.CurrentThread.CurrentCulture.Name will always be the same indeed and
it will have the value that is set in the local settings of the server when
you installed it.

What you need is Request.UserLanguages. This is a sorted array which reflects
the user's language preferences set in the browser.

These links will get you started :

http://msdn.microsoft.com/library/d...stemWebHttpRequestClassUserLanguagesTopic.asp
http://samples.gotdotnet.com/quickstart/aspplus/doc/resourcefiles.aspx
http://west-wind.com/weblog/posts/334.aspx
http://weblogs.asp.net/rgillen/archive/2004/04/30/123759.aspx


Let me know if you have any more questions..

Cheers,
Tom Pester

PS : if you use asp.net v2 check out the quickstart tuts for an easier solution
 

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
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top