Forums
This topic is locked
Setting application variable
Posted 04 Feb 2002 11:11:39
1
has voted
04 Feb 2002 11:11:39 Andy Smith posted:
Does anyone know how to set an application variable with an 'on change' event in a text field?Thanks in advance
Andy Smith
Replies
Replied 06 Feb 2002 11:29:11
06 Feb 2002 11:29:11 Kevin Abbott replied:
You can't do this because the ASP part of your code is loaded server side before the actual document is sent to the browser (you).
What you could do is if a selection is chosen from your form then direct the user to another page and then set the application variable. Example:
<u>Page 1</u>
A menu with five options.
user selects option 2.
user submits page (to page 2)
<u>Page 2</u>
dim aValue = Request.Form(themenu);
do what you want with aValue e.g.
Application(aValue);
Hope this helps
www.k.abbott.btinternet.co.uk/
Edited by - K.Abbott on 06 Feb 2002 11:30:23
What you could do is if a selection is chosen from your form then direct the user to another page and then set the application variable. Example:
<u>Page 1</u>
A menu with five options.
user selects option 2.
user submits page (to page 2)
<u>Page 2</u>
dim aValue = Request.Form(themenu);
do what you want with aValue e.g.
Application(aValue);
Hope this helps
www.k.abbott.btinternet.co.uk/
Edited by - K.Abbott on 06 Feb 2002 11:30:23
Replied 06 Feb 2002 12:21:15
06 Feb 2002 12:21:15 Andy Smith replied:
What about a session variable?
Or would that be the same also...
Thanks in advance
Andrew
Or would that be the same also...
Thanks in advance
Andrew