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
>
查看全文
相关阅读:
名门暗战
redis安装相关下载
Git:git diff 命令详解
【教程】Win7-64位安装OpenSSL详细过程
Linux 下MQ的安装和配置亲测
用命令创建MySQL数据库
WebSphere MQ中的CCSID
Netty:option和childOption参数设置说明
BeanNameAware接口和BeanFactoryAware接口
再理解tcp backlog
原文地址:https://www.cnblogs.com/goodspeed/p/26494.html
最新文章
ABAP实现Blowfish加密算法
JSON2ABAPType:根据JSON数据结构生成ABAP类型定义
Azure Application Insights REST API使用教程
ABAP实现Geohash
对付时间不充足的项目的一些思路
Dynamics 365中的事件框架与事件执行管道(Event execution pipeline)
Jenkinsfile构建docker镜像
包含jdk和nginx的基础镜像
Prometheus 监控进程
Prometheus Redis_exporter
热门文章
Prometheus jvm_exporter监控zookeeper
Prometheus MySQL_exporter
Prometheus Node_exporter
Prometheus+grafana搭建
Docker mysql主主互备和高可用
Dom--属性以及创建标签
征鸿-城市时光 业主群
pilicat-dfs 霹雳猫-分布式文件系统
微信公众号 chinaxdt 的 解压密码 mima
如何让淘宝店铺的商品能自动发货到旺旺
Copyright © 2011-2022 走看看