private void Button2_Click(object sender, System.EventArgs e) private void Button3_Click(object sender, System.EventArgs e)
{
string[] a=new string[2];
a[0]=”aa”;
a[1]=”bb”;
Application.Add(“a”,a);//将值赋给 Application[“a”]
}
{
this.ListBox1.Items.Clear();//清除列表里的值
string[] b=(string[])Application[“a”];//将值赋给数组 b
for (int i=0;i<b.Length;i++)
{
this.ListBox1.Items.Add(b[i]);
}
}
那数组存入application,再利用循环读出来_asp.net技巧
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 那数组存入application,再利用循环读出来_asp.net技巧
相关推荐
- 暂无文章
