Jerry wrote:
> I'm using this code:
>
> Dim strName
> For Each strName in Session.Contents
> Response.Write strName & " - " & Session.Contents(strName) & "<BR>"
> Next
>
> If I only do a response.write strName, it shows all the session names
> but when I include the session.contents it gives me the following
> error:
>
> Microsoft VBScript runtime error '800a01c2'
>
> Wrong number of arguments or invalid property assignment
>
> I've been to http://www.aspfaq.com/show.asp?id=2373 and it talks about
> using ADODB.Recordset but I'm not accessing data on this page.
>
> Any ideas why this is happening?
>
> Thanks,
I've never used Session.Contents, but it should work. This is what I always
do:
For Each strName in Session
Response.Write strName & " - " & Session(strName) & "<BR>"
Next
Anyways, if you create a page containing only the snip of code you've posted
above, will the error occur?
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"