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
>
查看全文
相关阅读:
HDU1255覆盖的面积
B. An express train to reveries
Long Long Message(后缀数组)
Longest Common Substring(最长公共子序列)
最长上升子序列(NlogN)总结
bzoj 1500 维修数列
HDU 6357 Hills And Valleys
牛客暑假多校第六场 I Team Rocket
HDU 6346 整数规划 二分图匹配最优解
牛客暑假多校第五场 I vcd
原文地址:https://www.cnblogs.com/goodspeed/p/26494.html
最新文章
包的基本使用
软件开发目录规范
模块的基本使用
面向过程编程
函数总结
内置函数
2017.10.7北京清北综合强化班DAY7
hdu2188 Check Corners
BZOJ 2763: [JLOI2011]飞行路线
BZOJ1614: [Usaco2007 Jan]Telephone Lines架设电话线
热门文章
CODEVS 1001 舒适的路线
BZOJ1042: [HAOI2008]硬币购物
BZOJ 2431: [HAOI2009]逆序对数列
BZOJ 1055: [HAOI2008]玩具取名
51nod 1677 treecnt
HDU 1051 Wooden Sticks
poj 3669 Meteor Shower
poj 3009 Curling 2.0
札记
HDU 2665 Kth number(划分树)
Copyright © 2011-2022 走看看