control ASP variables through Javascript
by "Phil Babcock" <pbabcock(at)bgsgroup.com>
|
| Date: |
Mon, 28 Feb 2000 10:49:55 -0500 |
| To: |
"hwg-languages(at)hwg.org" <hwg-languages(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
HI all
Is there a way to control ASP variables through the use of Javascript?
What I want to do is have a javascript function that is called and then
changes the value of a session variable.
Here is the way I am tryign to do it:
<SCRIPT LANGUAGE=javascript>
function eModifyAccount(){
document.writeln("<% session("cnstMode") = 2 %>")
document.forms[1].submit()
return 0
}
</SCRIPT>
The problem is that session("cnstMode") gets set to 2 everytime the page is
loaded, not just when the function eModifyAccount() is called.
Any ideas?
Phil Babcock
Lead Web Designer
BGS Group Inc.
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.