Website Support Multi Language

How to implement Multi-Langugage support in our Website?

Use Global Resources for your page text and controls based on the user's language.


1. A Resource file(.resx) stores values.
2. Manually indicate that controls should use resources for their property value
3. At run-time, the controls property values are derived from the resource file.


1. In Solution Explorer, right click the root of your web site , Click Add ASP.NET Folder and then click App_GlobalResources.
2. Right-Click the App_GlobalResources folder, and then click Add New Item
3. Choose Resource templates , Name box , type MultiLanguage.resx and click Add.
4. Open the MultiLanguage.resx file
5. First row under the Name column type Login and Value Column type Login
6. Create for resource file for Chinese and Malay language in the name of MultiLanguage.zh-SG.resx and
7. Enter the all the corresponding values.

Now you have created three values for the resource. At runtime, ASP.Net will read the value based on what language user selected.

8. Add Label Control to the Aspx page

1. Default.aspx and switch to design mode, drag label control into the page
2. Right-Click the Label control , click properties and then click the ellipsis(..)button in the expression box.The Expressions dialog box appears
3. In the Bindable Properties list, click Text.
4. In the Expression Type Lost, Select Resources.
5. Expression Properties, Set ClassKey to MultiLanguage and ResourceKey to Username , click Ok.
6. Assign for all Control.
7. Code Behind write the below code

protected override void InitializeCulture()
String str = "zh-SG"; // chinese Language
if (str != null)
String selectedLanguage = str;
UICulture = selectedLanguage;
Culture = selectedLanguage;

Thread.CurrentThread.CurrentCulture =
Thread.CurrentThread.CurrentUICulture = new


  • Multi Language (
  • Comments

    Author: Siti11 Feb 2010 Member Level: Gold   Points : 0

    hey its a good atricle. do upload such good items. Tx again.

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: