How to change globalization settings in ASP.NET MV

More
8 years 11 months ago #13960 by florencebush
Before, I host at asphostportal.com , I can setup globalization settings in the web.config in order to change the UICulture to en-US. For example:

<system.web>
<globalization culture="en-US" uiCulture="en-US" />
</system.web>

How can I do the same things in ASP.NET 5 (ASP.NET MVC 6) equivalently?

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #13961 by Pete
It looks like the same exact question was asked in this thread on the MSDN forum and there is an answer to it:

forums.asp.net/t/2048540.aspx?How+to+cha...gs+in+ASP+NET+MVC+6+

There is also a good article about ASP.NET MVC5 Internationalization here that you can read (it may be overkill for what you are trying to do):

afana.me/post/aspnet-mvc-internationalization.aspx

Let me know if this helps.

Thanks,
Pete

DigiOz Webmaster
www.digioz.com

Please Log in or Create an account to join the conversation.

More
8 years 20 hours ago #14014 by manee
Either add the following to your web.config file:

<system.web>
<globalization culture="en-US" uiCulture="en-US" />
</system.web>

or you can add this statement on the page:

<%@ Page uiCulture="en-US" culture="en-US" %>

Hope this will work

More about..... Globalization and Localization

Brian
The following user(s) said Thank You: Pete

Please Log in or Create an account to join the conversation.

Time to create page: 0.118 seconds
Powered by Kunena Forum