NET下根据Ascll值输出对应的字符
Admin
|
2007-12-15 20:06:01
|
TrackRecord:
1443
Times | Tag标签:asp.net
打印本页
您当前所处的位置是:〖首页〗→【文章页】
本站共有16个图文教程栏目,请用心拜读!
本站提供经典的Excel公式函数实例,Word排版技巧,PPT教程;同时更兼有Flash,PowerPoint,数据库等技术文章。
//以下代码根据Ascll值输出字母A--Z
ListItem en =new ListItem();
for(int c=(int)'A';c<=(int)'Z';c++)
{
en.Text=(Char)c;
this.DropDownList1.Item.Add(en);
}
for(int c=(int)'A';c<=(int)'Z';c++)
{
ListItem item=new ListItem(((char)c).ToString());
this.DropDownList1.Items.Add(item);
}
stirng[] chars=new string[26];
for(int c=(int)'A';c<=(int)'Z';c++)
{
chars[c-((int)'A')]=(char)c;
c++;
}
this.DropDownList1.DataSource=chars;
this.DataBind();
for(int c=(int)'A';c<=(int)'Z';c++)
{
Response.Write((char)c);
c++;
}
会员评论列表:

正在加载数据,请稍后……
针对本篇文章或本站,请您发表个人的建议或批评!