<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Globalization" %>
<html>
<head>
<title>Predefined CultureInfo Names</title>
<link rel="stylesheet" href="/aspxtreme/shared/netdemos.css">
<script language="C#" runat="server">
public void Page_Load ( Object src, EventArgs e ) {
if ( ! IsPostBack ) {
CultureInfo [ ] cultures = CultureInfo.GetCultures ( CultureTypes.AllCultures );
gvCultures.DataSource = cultures;
gvCultures.DataBind ( );
}
}
</script>
<body>
<!-- #include virtual="~/shared/top.inc" -->
<div class="header"><h3>Predefined CultureInfo Names</h3></div>
<hr size=1 width=90%>
<p>The following table lists all the <b>CultureInfo</b> names predefined in the .NET framework. </p>
<div align="center">
<form runat="server">
<asp:gridview id="gvCultures" runat="server"
width="92%" cellpadding=3 allowsorting
autogeneratecolumns=false>
<headerstyle backcolor="lightsteelblue" height="20pt" />
<columns>
<asp:boundfield headertext="LCID"
datafield="LCID" />
<asp:boundfield headertext="Name"
datafield="Name" />
<asp:boundfield headertext="Display Name"
datafield="DisplayName" />
<asp:boundfield headertext="Native Name"
datafield="NativeName" />
<asp:boundfield headertext="English Name"
datafield="EnglishName" />
</columns>
</asp:gridview>
</form>
</div>
<hr size=1 width=90%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>