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
>
查看全文
相关阅读:
Android监听器无法跳转的可能原因之一。。。
627,一个神圣的日子
Android BottomNavigationView的用法
Android VideoView未解决,动态读取权限、BottomNavigationView的用法
Android RecyclerView的补充。
Android 的Glide、TabLayout、RecyclerView(下一章补充)。
Android 自定义组件,自定义LinearLayout,ListView等样式的组件
Android html5和Android之间的交互
Android WebView的使用
Android Json转换类对象,并使用
原文地址:https://www.cnblogs.com/goodspeed/p/26494.html
最新文章
eclipse项目导入到android studio中文乱码处理
第一行Kotlin系列(三)Intent 向上一页返回数据onActivityResult的使用
第一行Kotlin系列(二)Intent隐式显式跳转及向下传值
第一行Kotlin系列(一)kotlin按钮点击事件
新创建的项目AndroidManifast报App is not indexable by Google Search;
解决在eclipse中写ImageView时有警告的问题
简单的android启动跳转页面
android使用TextView实现跑马灯的效果(1)
设置EditText控件中提示消息hint的字体颜色和大小
android中在java代码中设置Button按钮的背景颜色
热门文章
Taro自定义Modal对话框组件|taro仿微信、android弹窗
react-native自定义Modal模态框|仿ios、微信弹窗RN版
angular版聊天室|仿微信界面IM聊天|NG2+Node聊天实例
react网页版聊天|仿微信、微博web版|react+pc端仿微信实例
react聊天室|react+redux仿微信聊天IM实例|react仿微信界面
vue仿微信网页版|vue+web端聊天室|仿微信客户端vue版
vue聊天室|h5+vue仿微信聊天界面|vue仿微信
小程序版聊天室|聊天小程序|仿微信聊天界面小程序
原生Js弹窗插件|web弹出层组件|对话框
html5聊天案例|趣聊h5|仿微信界面聊天|红包|语音聊天|地图
Copyright © 2011-2022 走看看