469,903 Members | 1,374 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

Rusty on the ASP. Array Question

I've been doing ASP.NET for the past few years and have gotten spoiled and
now find myself in a situation where I need to make some changes to an old
classic ASP page. The problem is that there is a VB script function that
populates an array. There are some dropdown boxes on the page that cause the
page to reload. When it does reload, it causes the function that loads the
array to fire again and I don't want it to. I want to hold the original
array and reuse it instead. Again, being rusty in classic ASP, what are my
options for doing this and how? I'm used to having my session state in
ASP.NET. Any code samples would be greatly appreciated.

Thanks in advance!
Aug 16 '06 #1
3 1493
David Hearn wrote:
I've been doing ASP.NET for the past few years and have gotten
spoiled and now find myself in a situation where I need to make some
changes to an old classic ASP page. The problem is that there is a VB
script function that populates an array. There are some dropdown
boxes on the page that cause the page to reload. When it does reload,
it causes the function that loads the array to fire again and I don't
want it to. I want to hold the original array and reuse it instead.
Again, being rusty in classic ASP, what are my options for doing this
and how? I'm used to having my session state in ASP.NET. Any code
samples would be greatly appreciated.
Session state exists in classic ASP. Pretty much the same syntax is used
as used in .Net. Just look at the msdn documentation if you need a
refresher:
http://msdn.microsoft.com/library/en...f33a651779.asp
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Aug 16 '06 #2
Thanks Bob! I actually got it right after I posted. I am filling the array
the first time and then just holding it in a session variable for the rest
of the pages life.

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
David Hearn wrote:
>I've been doing ASP.NET for the past few years and have gotten
spoiled and now find myself in a situation where I need to make some
changes to an old classic ASP page. The problem is that there is a VB
script function that populates an array. There are some dropdown
boxes on the page that cause the page to reload. When it does reload,
it causes the function that loads the array to fire again and I don't
want it to. I want to hold the original array and reuse it instead.
Again, being rusty in classic ASP, what are my options for doing this
and how? I'm used to having my session state in ASP.NET. Any code
samples would be greatly appreciated.
Session state exists in classic ASP. Pretty much the same syntax is used
as used in .Net. Just look at the msdn documentation if you need a
refresher:
http://msdn.microsoft.com/library/en...f33a651779.asp
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Aug 16 '06 #3
On Wed, 16 Aug 2006 08:21:46 -0500, David Hearn <Da*********@shawinc.com>
wrote:
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>David Hearn wrote:
>>I want to hold the original array and reuse it instead. Again, being
rusty in classic ASP, what are my options for doing this and how?
Session state exists in classic ASP. Pretty much the same syntax is
used as used in .Net. Just look at the msdn documentation if you need
a refresher:
http://msdn.microsoft.com/library/en...f33a651779.asp

Thanks Bob! I actually got it right after I posted. I am filling the
array the first time and then just holding it in a session variable
for the rest of the pages life.
It probably bears mention that Arrays stored in the Session object are
copied wholesale each time you access them. You will most likely want to
save the copy in a variable in the interest of performance.

--
Justin Piper
Bizco Technologies
http://www.bizco.com/
Aug 16 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by buda | last post: by
11 posts views Thread by Geoff Cox | last post: by
46 posts views Thread by C C++ C++ | last post: by
4 posts views Thread by mab464 | last post: by
1 post views Thread by Sam | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.