We have a system that runs in IIS.
The system should always run using the same “culture”, but we cannot rely on the server settings being set correct.
One way to do it is to specify the culture everytime we do a ToString.
However, we were wondering, is it possible to set the culture on a thread at the begining of a method and rely on all the code in that method being run on the same thread?
Do you dynamically change the culture? If not, you can set the culture in the web.config file.
You can also set it at page level:
And on the thread:
But for what you are using, the page-level or web.config level seems like the most appropriate perhaps.