Increment Session Counter on Click
Posted on 2006-06-09
I have a site where I display training images to a user. The images are named as such:
When the user clicks the Next link at the bottom of the page I need to invoke code that increments the Session("Counter") by 1.
I have this now:
<% Session("Counter") = Session("Counter") + 1 %>
But the problem is when I refresh the page the counter increments. I only want it to increment when the user clicks the next button.
Any ideas on how I can make this happen?
This is my current link:
<img src="/images/next.gif" border="0"></a>
Thanks in advance for your help,