CultureInfo/LCID on Client Machine

  • Thread starter Thread starter Clive
  • Start date Start date
C

Clive

Hi,

Anyone know how I get the CultureInfo/LCID on the client
machine using a Request?

Thanks,
C.
 
Clive said:
Hi,

Anyone know how I get the CultureInfo/LCID on the client
machine using a Request?

Look at Request.Languages. Note that it is sometimes null as the browser
doesn't always supply languages.

If you use String.Split on the individual elements of the array, you can
take the first element and use it as the argument to the CultureInfo
constructor. However, I suggest doing this in a try block - browsers
sometimes supply bogus information.
 
Back
Top