INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Session variable

Session variable

(OP)
I have an asp page showing results in a list view. I have a link on each row to a detail page which works fine.. I am trying to pass a session variable at the same time from a field in the selected row but the session variable only contains the value from the last row and not the selected row, any help much appreciated. Thank you in advance. He's

RE: Session variable

That depends on how your code is setting the session variable value. ASP does not 'know' what you are clicking on in your browser, so you will have to use javascript to set a value possibly in 'hidden' variable when you 'check' the box.

OR your code has to test for which boxes are checked, to do this all the check boxes should have the same name so the values will be passed as a comma separated string of the checked boxes.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.

RE: Session variable

(OP)
Hi Chris,

Thank you for assisting...

The row that I am wishing to carry over a session variable is the same row I have the following link on.. ("IDCtr" is in the same record as a field value ("specid") I want to store in a session)

<td width="50"><font size="1"><A HREF="spec_id.asp?<%= MM_keepURL & MM_joinChar(MM_keepURL) & "IDCtr=" & QuickUnconfirmed.Fields.Item("IDCtr").Value %>">Edit</A></font></td>

When I select this link it knows the value of the "IDCtr" for that row, how does the detail page know which record to open using the code above on the subsequent page with this value ?

thank you in advance.

Gez

RE: Session variable

Your code on the 'receiving' URL has to construct and then query the database with that row ID and display the retrieved data.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.

RE: Session variable

(OP)
Understood, cheers Chris

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close