HELP: Returning a value afteer clicking a link?

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hello all,
I need to be able to return a value to an asp page after clicking on a
hyperlink.
Q1....Is there any html attribute for the <a> tag which will do this?
Q2...If not, could I use 'onclick' or 'onmousedown' mixed with some
asp...and if so, which is better suited?

If anyone has any ideas I would appreciate it.

TIA.
 
You have to send the value when clicking the link, as querystring

ex. nextpage.asp?v=something

Then on nextpage.asp

<%
dim v
val = request.querystring("v")
%>

Then can use "val" however you need to.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Thanks Thomas
Is the value returned a string or a number or is that up o me?

Thanks again.
 
It is a string, which you can then convert to a number if needed, but that depends on how you will
be using it at that point.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top