首页 相关文章 session变量中的数组如何引用

session变量中的数组如何引用

If you store an array in a Session object, you should not attempt to alter the elements of the stored array directly. For example, the following script will not work:

<% Session("StoredArray")(3) = "new value" %

This is because the Session object is implemented as a collection. The array element StoredArray(3) does not receive the new value. Instead, the value is indexed into the collection, overwriting any information stored at that location.

It is strongly recommended that if you store an array in the Session object, ...[ 查看全文 ]

2016-01-29 标签:

session变量中的数组如何引用的相关文章

手机页面
收藏网站 回到头部