zoukankan
html css js c++ java
CultureInfo学习
<%
@ Page Language
=
"
C#
"
ResponseEncoding
=
"
utf-8
"
%>
<%
@Import Namespace
=
"
System.Globalization
"
%>
<%
@Import Namespace
=
"
System.Threading
"
%>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
>
<
script
runat
="server"
>
protected
void
Page_Load(object send, EventArgs e)
{
HtmlTableRow r;
HtmlTableCell c;
int
row
=
0
;
//
Titel
r
=
new
HtmlTableRow();
r.BgColor
=
"
#0065CE
"
;
c
=
new
HtmlTableCell(); c.InnerText
=
"
Name
"
; c.Attributes.Add(
"
style
"
,
"
color:#ffffff;text-align:center;font-weight: bold
"
); r.Cells.Add(c);
c
=
new
HtmlTableCell(); c.InnerText
=
"
DisplayName
"
; c.Attributes.Add(
"
style
"
,
"
color:#ffffff;text-align:center;font-weight: bold
"
); r.Cells.Add(c);
c
=
new
HtmlTableCell(); c.InnerText
=
"
EnglishName
"
; c.Attributes.Add(
"
style
"
,
"
color:#ffffff;text-align:center;font-weight: bold
"
); r.Cells.Add(c);
c
=
new
HtmlTableCell(); c.InnerText
=
"
NativeName
"
; c.Attributes.Add(
"
style
"
,
"
color:#ffffff;text-align:center;font-weight: bold
"
); r.Cells.Add(c);
c
=
new
HtmlTableCell(); c.InnerText
=
"
LCID
"
; c.Attributes.Add(
"
style
"
,
"
color:#ffffff;text-align:center;font-weight: bold
"
); r.Cells.Add(c);
c
=
new
HtmlTableCell(); c.InnerText
=
"
语言代码
"
; c.Attributes.Add(
"
style
"
,
"
color:#ffffff;text-align:center;font-weight: bold
"
); r.Cells.Add(c);
c
=
new
HtmlTableCell(); c.InnerText
=
"
ISO 639-1代码
"
; c.Attributes.Add(
"
style
"
,
"
color:#ffffff;text-align:center;font-weight: bold
"
); r.Cells.Add(c);
objTable.Rows.Add(r);
foreach (CultureInfo culture
in
CultureInfo.GetCultures(CultureTypes.SpecificCultures))
{
r
=
new
HtmlTableRow();
if
(row
%
2
==
1
)
r.BgColor
=
"
Gainsboro
"
;
c
=
new
HtmlTableCell(); c.InnerText
=
culture.Name; r.Cells.Add(c);
c
=
new
HtmlTableCell(); c.InnerText
=
culture.DisplayName; r.Cells.Add(c);
c
=
new
HtmlTableCell(); c.InnerText
=
culture.EnglishName; r.Cells.Add(c);
c
=
new
HtmlTableCell(); c.InnerText
=
culture.NativeName; r.Cells.Add(c);
c
=
new
HtmlTableCell(); c.InnerText
=
culture.LCID.ToString(); r.Cells.Add(c);
c
=
new
HtmlTableCell(); c.InnerText
=
culture.ThreeLetterISOLanguageName; r.Cells.Add(c);
c
=
new
HtmlTableCell(); c.InnerText
=
culture.ThreeLetterWindowsLanguageName; r.Cells.Add(c);
objTable.Rows.Add(r);
row
++
;
}
}
</
script
>
<
html
xmlns
="http://www.w3.org/1999/xhtml"
>
<
head
>
<
title
>
CultureInfo
</
title
>
<
style
>
td
{
}
{
font-size
:
12px
}
</
style
>
</
head
>
<
body
bgcolor
="white"
leftmargin
="0"
>
<
form
id
="form1"
runat
="server"
>
<
div
>
<
table
id
="objTable"
runat
="server"
></
table
>
</
div
>
</
form
>
</
body
>
</
html
>
查看全文
相关阅读:
SQL删除重复记录
C#分页插件 Webdiyer
B/S系统操作日志设计思路
VS2010自动添加版权信息以及更改默认的jquery库
Gridview中添加CheckBox全选
利用log4net记录操作日志
如何在定义游标的时候使用动态sql语句
java 获取指定月份第一天和最后一天
java 判断星期几
SSH登陆错误"WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! "
原文地址:https://www.cnblogs.com/goodspeed/p/26494.html
最新文章
[转载]《人月神话》结束语:令人向往、激动人心和充满乐趣的五十年
这儿还挺舒坦
JAVA实现二分查找
Java对象初始化顺序
2009——总结
idea使用mapstruct报错,Internal error in the mapping processor
系统分析师
语言java题库
linux内核tcp/ip
加密算法
热门文章
算法括号问题
cvcvvf
注入shell
算法和差问题
计算机网络物理层网卡组成
算法递归问题
算法栈
JAVA第二阶段
Test[]
多路归并算法
Copyright © 2011-2022 走看看