free e- mail
thaimail
hotmail
yahoo
siam2you
thammasat
Home
Visual Basic
Active Server Page
JavaScript
Network
Other
Active Server Pages.
Session Object
All Collections
All Events
All Methods
All Objects
All Properties
Application.Contents
COLLECTION PROPERTY: Session.Contents
Session.
Contents
(Key)
The
Contents
collection property contains a list of all of the items that has been created and added to the
Session
object through script commands, rather than by using the HTML <OBJECT> tag.
You can iterate through a collection using a
For Each item in ... Next
loop.
There is one mandatory argument.
Key
The
key
argument is the name of the item to retrieve.
Code:
<%
Session("name") = "Application Maker"
Session("publishdate") = "05/01/99"
Session("author") = "ISSI"
Set Session("Obj1") = Server.CreateObject("ADODB.Connection")
For Each Item in
Session.Contents
If IsObject(
Session.Contents
(Item)) Then
Response.Write Item & " is an object.<BR>"
Else
Response.Write Item & "=" &
Session.Contents
(Item) & "<BR>"
End If
Next
%>
Output:
NAME=Application Maker
PUBLISHDATE=05/01/99
AUTHOR=ISSI
OBJ1 is an object.
Copyright 2000 by Infinite Software Solutions, Inc.
Trademark Information
ASP - Link
ASP reference
B
C
D
E
F
G
Last update:
Copyright © 2001.Memo Wil@keo everything that I like Co.,Ltd.