If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > add value to variable

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-24-04, 15:46
-Dman100- -Dman100- is offline
Registered User
 
Join Date: Jan 2004
Posts: 124
add value to variable

I would think this is an easy question, but I haven't been able to accomplish what I'm trying to do:

How can I add a value to a variable using the onClick event handler?

I have:
<%
session("varname") = 0
%>

When a button is clicked in a form, (not the button that submits the form), I want to increment that value by 1. Can anyone help?

Thanks,
-D-
Reply With Quote
  #2 (permalink)  
Old 12-01-04, 09:31
rweide rweide is offline
Registered User
 
Join Date: Aug 2004
Location: USA
Posts: 54
I am still learning this, but..

You seem to be trying to mixed client-side user action with server-side variables, and I was told to use both ASP script and client-side script to play with this, and probably use a hidden object (e.g. <input type=hidden>) to store the value for transnferring betwwen client and server.

Teach me if you have better way to do this.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On