Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: change value of ASP variable thru client side scripting


Message #1 by "shirish" <shirishcj@h...> on Tue, 24 Jul 2001 14:07:50
Hi everybody,



This is Shirish here. I have problem in changing the value of a variable 

declared in server side script (VBScript) i.e. ASP code. I want to change 

the value of the variable after the user clicks the check box and submits 

the form. The value should be changed before the next page is displayed. 

If anybody knows the solution please let me know.



thanks



Shirish
Message #2 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Tue, 24 Jul 2001 14:15:19 +0100
in tha ASP that the form is submited to, just update the value before

processing the rest of the page



-----Original Message-----

From: shirish [mailto:shirishcj@h...]

Sent: 24 July 2001 15:08

To: ASP Web HowTo

Subject: [asp_web_howto] change value of ASP variable thru client side

scripting





Hi everybody,



This is Shirish here. I have problem in changing the value of a 

variable

declared in server side script (VBScript) i.e. ASP code. I want to 

change

the value of the variable after the user clicks the check box and 

submits

the form. The value should be changed before the next page is 

displayed.

If anybody knows the solution please let me know.



thanks



Shirish

Message #3 by "Tim Morford" <tmorford@n...> on Tue, 24 Jul 2001 17:55:01 -0400
Hello shirish, I think what you are asking Correct me if I am wrong is, You

want to check a box then update a variable or some sort like in a input tag

of some kind?



This is how you might go about that



<input type="checkbox" name="<%=ObjName%>" value="<%=objValue%>"

onClick="Tagname.value=this.value;">



<input type="hidden" name="Tagname" value="<%=hidden_value_ID%>">



or



<input type-"hidden" name="Tagname">



Let me know if this is not what you need I will try to make something that

is what you need.



Tim Morford



-----Original Message-----

From: Alex Shiell, ITS, EC, SE [mailto:alex.shiell@s...]

Sent: Tuesday, July 24, 2001 9:15 AM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: change value of ASP variable thru client

side scripting





in tha ASP that the form is submited to, just update the value before

processing the rest of the page



-----Original Message-----

From: shirish [mailto:shirishcj@h...]

Sent: 24 July 2001 15:08

To: ASP Web HowTo

Subject: [asp_web_howto] change value of ASP variable thru client side

scripting





Hi everybody,



This is Shirish here. I have problem in changing the value of a variable

declared in server side script (VBScript) i.e. ASP code. I want to change

the value of the variable after the user clicks the check box and submits

the form. The value should be changed before the next page is displayed.

If anybody knows the solution please let me know.



thanks



Shirish


  Return to Index