How to change globalization settings in ASP.NET MV

  • florencebush
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 4 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
7 years 3 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
6 years 5 months 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.406 seconds
Powered by Kunena Forum