Saturday, 7 April 2012

Globalization

                                            Globalization
it is use to dovelop multilingual Application.

ex-

Malay (Malaysia)
ms-MY


< April 2012 >
Isnin Sel Rabu Khamis Jumaat Sabtu Ahad
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6





using System;using System.Data;
 using System.Linq;
  Using System.Web.Security;
using System.Web.UI;



using System.Globalization;

public partial class _Default : System.Web.UI.Page
{protected void Page_Load(object sender, EventArgs e)
{CultureInfo[] arr = CultureInfo.GetCultures(CultureTypes.SpecificCultures);
foreach (CultureInfo cc in arr)
{
DropDownList1.Items.Add(
new ListItem(cc.DisplayName, cc.Name));

}}protected void Button1_Click(object sender, EventArgs e)
{//this.Culture = "sa-IN";

}

protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{

Response.Write(DropDownList1.SelectedItem.Text +
"<br>" + DropDownList1.SelectedItem.Value);

this.Culture = DropDownList1.SelectedItem.Value;

}

}

No comments:

Post a Comment