control ASP variables through Javascript

by "Phil Babcock" <pbabcock(at)>

 Date:  Mon, 28 Feb 2000 10:49:55 -0500
 To:  "hwg-languages(at)" <hwg-languages(at)>
  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 %>")
		return 0	


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