Where does ASP .NET site set CurrentCulture and CurrentUICulture be default from?

Answer is:

By default, ASP .NET sets CurrentCulture and CurrentUICulture from settings of an identity which is used to run a particular thread for a request. It could be either an application pool identity or a client identity (if impersonation is set to true).

But you can take a control further over this using the <configuration> element in a web.config. You can hardcode value for these properties in this element (also it can be done on a per-page basis), or set them to auto (it means that they will be taken from “AcceptLanguage” http header).

Advertisements
This entry was posted in .NET, ASP .NET. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s