hwg-languages archives | Feb 2000 | new search | results | previous | next |
control ASP variables through Javascriptby "Phil Babcock" <pbabcock(at)bgsgroup.com> |
|
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