asp.net中如何定义一个session数组呀?
请各位指教?它是如何传递使用的呀!!!给点代码行不?
------解决方案--------------------什么是Session数组啊?
Session[ "你的key "]= " ";设置
变量=Session[ "你的key "];取用
Session就是这么简单,不过可别滥用啊
------解决方案--------------------Session[ "a "] = "a ";
Session[ "b "] = "b ";
Session[ "c "] = "c ";
//
object[] sessions = new object[3];
sessions[0] = Session[ "a "];
sessions[1] = Session[ "b "];
sessions[2] = Session[ "c "];
//
Session[ "T "] = sessions;
//
object[] objs = (object[])Session[ "T "];
Response.Write(objs[0].ToString());
------解决方案--------------------去我博客吧~~!
有详细的例子~!
http://blog.csdn.net/jihuomima/archive/2008/01/23/2061175.aspx