Why is the culture set to the current thread

It is containing all topics related to Visual Basic, .NET Framework, Web Resource, GDI etc.
Ladva Nidhi
Posts: 295
Joined: Sat Sep 20, 2014 5:26 pm
Contact:

Why is the culture set to the current thread

Postby Ladva Nidhi » Mon Nov 10, 2014 3:18 am

Why is the culture set to the current thread?


sonall gajera

Re: Why is the culture set to the current thread

Postby sonall gajera » Fri Jul 10, 2015 10:32 am

When any user requests a resource from IIS like an ASPX page or any other resource. IIS services that request in his own thread. That means if 100 users have requested some resource from IIS he will serve every request in its own thread. In short IIS will spawn 100 threads to service the 100 request. Its very much practically possible that you can have different locale in different threads. So when we set a culture we can not set it for the whole application as it will affect all the requests.So when we set a culture we set it to a particular thread rather to the whole application.


Return to “Visual Basic .NET and ASP.NET”

Who is online

Users browsing this forum: No registered users and 3 guests