473,326 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How do I pass the Text from a clicked hyperlink to session Variable?

49
Hi
I have a asp page that shows usernames in a reapeating region so it lists all the users of my site, i want to be able to click on the user and the page then to bring up their details that or store in a database. so once the list is clicked it displays the relivent info, the click page been the same for all users but just change the filter. So how do i pass information from one page to another when a hyperlink is clicked?????
Nov 9 '06 #1
4 3701
ronverdonk
4,258 Expert 4TB
You pass a value to another page by adding the key/value pair to the url of the hyperlink. Assume you want to pass 'user=123' to the called script then your hyperlink could look like
Expand|Select|Wrap|Line Numbers
  1. <a href="topage.asp?user=123>Click here</a>
Ronald :cool:
Nov 9 '06 #2
Milkstr
49
so if i have a listbox with a and a click here link, when i change the list box and select another name and click the link, how do i pass the name i have selected into a session variable when i click the link??? is it similair???
Nov 9 '06 #3
so if i have a listbox with a and a click here link, when i change the list box and select another name and click the link, how do i pass the name i have selected into a session variable when i click the link??? is it similair???
If you want to do that with a listbox control, I would probably do that with either a form or some client-side scripting. If you want to bring up a pop-up/new browser window then you will need to do some client-side scripting, otherwise you may be better off doing this with a form as it negates the need for the user to have local scripting enabled. If you want to set this as a link, can you not show this as a list of values, with the above link set as a hyperlink for each user? If you want to restrict this to a small area of the page, you could do this with a div with the overflow set to scroll, but I don't know whether that would look too messy for you and how well it would work in IE (as it seems to have issues supporting CSS overflow). If you need some code snippets, post back and I'm sure either myself or someone else can supply these.
Nov 10 '06 #4
Milkstr
49
Could do with an html example?
Nov 10 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Mark | last post by:
I have a working PHP/MySQL application used for data entry. The data entry screen includes a "Save" button. The PHP code for this button looks like this: if (isset($_POST)) { if ($_POST ==...
2
by: TattyMane bigpond.net.au> | last post by:
asp.net, visual studio 2003, IE6 I have a sample web page that is linked to another page. On the first page, I have a text box, on the second, the first page's text box text is displayed using a...
1
by: crjunk | last post by:
I've got an aspx page that allows the user to select different options whenever they want to run a report. On this page, I have added an additional text box for the user to enter in comments about...
3
by: Wayne Wengert | last post by:
I have an application where a session variable is set in an ASPX page, The process calls an ASP page and when in that page the session variable appears to be null. How can I pass a session variable...
2
by: c676228 | last post by:
Hi, This is my first time to post asp.net question on this forum. I have a question for "How to pass the first form value to the next form" I have enrollinfo.aspx form which look like as follow:...
17
by: Rabbit | last post by:
Hi, On my 1st page, i have a function which gets a new ID value and need to transfer to another immediately. which I want to get in 2nd page using Request.form("txtID"), but doesn't work, the...
0
by: Tuhin | last post by:
please help me wit the code of passing hyperlink1.text value with navigateurl property of the hyperlink. cannot use session variable as cannot trap the value for non availability of the onClick()...
3
by: hon123456 | last post by:
Dear all, I have a session variable session("loginid) which can be passed from A.asp to B.asp. Then In B.asp I have a hyperlink to C.asp e.g. < A href..C.asp>. The session variable cannot be...
6
by: John Devlon | last post by:
Hi, I've got a small problem using 2 asp pages..... The first page has a button to go to the second page. On the second page, when the page is loaded, a check is excecuted to see if a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.