[求助]将数组赋值给session变量和application变量怎么做
怎样才能将数组赋值给session变量和application变量,最好是session变量
string[] a = new string[20];
for(int i=0;i<a.Length;i++)
{
a[i]=i.ToString();
}
Session["b"] = a;
string[] c = (string[])Session["b"];
for (int i = 0; i < c.Length; i++)
{
Label1.Text += c[i] + "<br>";
}