How to Set Default Language in Web.config

Having an asp app available in multiple languages is very good to reach a good audience. However you might want to set a default language so that it can be changed later by visitors. In this article I will give you a step by step guide on How to Set default language in web.config.

1. Open the web.config file of your application.

2. To set a default language, we will make use of the web forms globalization. Inside the <system.web> tag, add the <globalization/> tag:

globalization asp tag

3. Then inside the same <globalization/> tag, add the file, request and response encoding. In this example we will use ‘utf-8′ for all:

encoding type asp webconfig

Note: For more information on encoding types, please go here

4. Finally, add the culture values. Again, such values must go inside the <globalization/> tag:

culture=”en-US”

uiCulture=”en-US

culture webconfig asp

Note: For more information on culture values, please read this article

5. Save the changes and that’s it! Default language has been set.

This concludes How to set Default Language in Web.config

Looking for quality ASP Web Hosting? Look no further than Arvixe Web Hosting!

Happy Hosting!

Rodolfo Hernandez

Tags: , , , , , , , , | Posted under ASP .NET 2, ASP .NET 3.5, DotNet/Windows Hosting, WebsitePanel Tutorials | RSS 2.0

Author Spotlight

Rodolfo Hernandez

Rodolfo Hernandez

I like photography and reading books. Currently working for Arvixe as Elgg Community Liaison. Elgg Security Expert Web Security Expert CEO of UDP SW Social Web

Leave a Reply

Your email address will not be published. Required fields are marked *


8 × = 40

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>