数组保存到session
如何把数组保存到session
------解决方案--------------------sorry, some error
string[] strArr = new string[100]();
> > >
string[] strArr = new string[100];
------解决方案--------------------int[] n=new int[10];
for (int i = 0; i < 10; i++)
{
n[i] = i;
}
Session[ "num "] = n;
System.Int32[] p = (Int32[])Session[ "num "];
for (int i = 0; i < 10; i++)
{
Response.Write(p[i]);
}
------解决方案--------------------不好意思已经有人回答了呀,没细看
------解决方案--------------------string[] strA = new String[10];
Session[ "ID "] = strA;