473,671 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1616
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******@NOyah oo.SPAMcomwrote in message
news:%2******** ********@TK2MSF TNGP04.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*********@sh awinc.com>
wrote:
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcomwrote in message
news:%2******** ********@TK2MSF TNGP04.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2613
by: buda | last post by:
Hi, I've been wondering for a while now (and always forgot to ask :) what is the exact quote from the Standard that forbids the use of (&array) (when x >= number_of_columns) as stated in the FAQ 6.19 (http://www.eskimo.com/~scs/C-faq/q6.19.html). Thanks.
11
2260
by: Geoff Cox | last post by:
Hello, I am trying to get a grip on where to place the initialization of two arrays in the code below which was created using Visual C++ 2005 Express Beta 2... private: static array<String^>^ LHSquestions = gcnew array<String^> {"question 1","question 2"}; private: static array<String^>^ RHSquestions = gcnew array<String^> {"question 1",
28
2433
by: anonymous | last post by:
I have couple of questions related to array addresses. As they belong to the same block, I am putting them here in one single post. I hope nobody minds: char array; int address; Questions 1: Why cannot I do the following:
13
1706
by: Jack B | last post by:
I'm using Access 2002 to create a database for a small opera company that my wife is involved in, and I'm more than a bit rusty because I haven't created a new Access database since about 1999. So, I will probably have quite a few questions as I go through this, and hopefully this group will help me out. I will be creating this database for someone else to enter the data. I have a patron table with name, address, email, etc., and I...
46
6248
by: C C++ C++ | last post by:
what is an escaping variable?
23
1391
by: Raz | last post by:
On Wed, 30 Apr 2008 21:54:37 GMT, Erik Wikströ As I said, I will find the link again. His knowledge of C++ is just fine. http://www.builderau.com.au/video/soa/Rusty-s-message-to-C-programmers/0,2000064338,22432924p,00.htm http://www.builderau.com.au/video/soa/Why-C-remains-relevant/0,2000064338,22432921p,00.htm
4
4556
by: mab464 | last post by:
I have this code on my WAMP server running on my XP machine if ( isset( $_POST ) ) { for($i=0; $i<count($_POST);$i++) { if ($ans != NULL ) $ans .= ", " . $_POST ; // Not the first element so append a comma
1
1625
by: Sam | last post by:
Hi there. I hope this code is standard C. I think it is. Anyway, I haven't used C in a Looooooong time and am a little rusty on pointers. I am wondering why "buff" is a pointer to a pointer instead of just "*buff". I'm also not really sure about the language of pointers. Is it correct to say "pointer to a pointer to buff" or "double pointer to buff" or what? If you can help me with this, you have my thanks... REM --- *Code Below*...
0
8393
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8598
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8670
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7437
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4225
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4407
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2812
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.