A
Aaron
Is there a way I can loop through everything that is in session?
Is there a way I can loop through everything that is in session?
Evertjan. said:Aaron wrote on 27 okt 2003 in microsoft.public.inetserver.asp.general:
<% For each d in Session.Contents %>
<%=d%>
=
<%=Session.Contents(d)%>
<br>
<% Next %>
Avoid this method, as it is unnecessarily inefficient. With the
approach above, the ASP interpretter will need to switch back and
forth between HTML and ASP. The other approaches posted don't.
Ray at said:Dim ajs8ejfajshdfklhas734ur
For Each ajs8ejfajshdfklhas734ur In Session.Contents
Response.Write ajs8ejfajshdfklhas734ur & " = " &
Session(ajs8ejfajshdfklhas734ur) & "<br>"
Next
Ray at work
Harag said:Ray could you explain why its not an issue with iis5+ or at least
point us to some urls exaplaining why.
I was looking at a site called "coveryourasp.com" which says that
switching between asp & html is a bad thing and that he does his site
all using response.write (or a cutdown version called "Out", example
below)
What you think to this sort of design for the site? please take a look
at his and let me know your thoughts.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.