473,404 Members | 2,137 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,404 software developers and data experts.

passing variables from one asp page to another.

Hello all,
I would like to learn the syntax for passing variables that I retreived from
a database to a second asp page. Currently, I'm using:

Response.Write "<tr><td>&nbsp;</td><td><Font size= ""-1""><B><a href=
""InterviewerInfo2.asp?timeID=" & rs("Starttime") & " "">"
How do I add more variables to my link: <a href = ...?
ie Nameofcandidate and InterviewDate

in this context:

' Iterate through times
While Not(RS.EOF)

' If date changes
If lDateID<>RS("DateID") Then

' If this is not first date, close out previous group
If lDateID>0 Then Response.write "</tr><tr><td
height=10><hr></td></tr>"

' Print header for new group
Response.write "<tr><td>Candidate Name: </td><td>" & "<B>" &
RS("NameofCandidate") & "</b>" & "</td></tr>" & vbcrlf
Response.write "<tr><td>Interview Date: </td><td>" &
RS("InterviewDate") & "</td></tr>" & vbcrlf
Response.write "<tr><td>Interview DateID: </td><td>" &
RS("DateID") & "</td></tr>" & vbcrlf
Response.write "<tr><td height=10></td></tr>" & vbcrlf
Response.write "<tr><td>Available time
Slots:&nbsp;&nbsp;</td><td>Start Time</td><td>End Time</td></tr>" & vbcrlf

' Update group
lDateID = RS("DateID")

End If

' Print detail
Response.Write "<tr><td>&nbsp;</td><td><Font size= ""-1""><B><a
href= ""InterviewerInfo2.asp?timeID=" & rs("Starttime") & " "">" & _
RS("StartTime") & "</a></td><td>" & RS("EndTime") & "</td></tr>"
& vbcrlf

Your help is appreciated,
Chieko


Jul 19 '05 #1
2 1902
InterviewerInfo2.asp?timeID=1&Nameodcandidate=3&ot hervar=5

"Chieko Kuroda" <ck*****@med.unc.edu> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hello all,
I would like to learn the syntax for passing variables that I retreived from a database to a second asp page. Currently, I'm using:

Response.Write "<tr><td>&nbsp;</td><td><Font size= ""-1""><B><a href=
""InterviewerInfo2.asp?timeID=" & rs("Starttime") & " "">"
How do I add more variables to my link: <a href = ...?
ie Nameofcandidate and InterviewDate

in this context:

' Iterate through times
While Not(RS.EOF)

' If date changes
If lDateID<>RS("DateID") Then

' If this is not first date, close out previous group
If lDateID>0 Then Response.write "</tr><tr><td
height=10><hr></td></tr>"

' Print header for new group
Response.write "<tr><td>Candidate Name: </td><td>" & "<B>" &
RS("NameofCandidate") & "</b>" & "</td></tr>" & vbcrlf
Response.write "<tr><td>Interview Date: </td><td>" &
RS("InterviewDate") & "</td></tr>" & vbcrlf
Response.write "<tr><td>Interview DateID: </td><td>" &
RS("DateID") & "</td></tr>" & vbcrlf
Response.write "<tr><td height=10></td></tr>" & vbcrlf
Response.write "<tr><td>Available time
Slots:&nbsp;&nbsp;</td><td>Start Time</td><td>End Time</td></tr>" & vbcrlf

' Update group
lDateID = RS("DateID")

End If

' Print detail
Response.Write "<tr><td>&nbsp;</td><td><Font size= ""-1""><B><a
href= ""InterviewerInfo2.asp?timeID=" & rs("Starttime") & " "">" & _
RS("StartTime") & "</a></td><td>" & RS("EndTime") & "</td></tr>" & vbcrlf

Your help is appreciated,
Chieko

Jul 19 '05 #2
Or you could use session variables:

Session("UserLastName") = "Smith"

Response.Write Session("UserLastName")

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jason Us | last post by:
Does anyone have experience with passing variables from an ASP page to a JSP page. The way it currently works in passing the SSN in the URL. This cannot be good. I thought that storing a...
2
by: Richard | last post by:
**** Post for FREE via your newsreader at post.usenet.com **** HI, I am working on a project where I need to input data to a (local) HTML page using multiple form elements, such as text,...
27
by: Oscar | last post by:
I am looking for a way to pass an ADO recordset that has been retrieved in an ASP page to another HTML-page. Is there someone who can provide me with a small sample or a link to see how this is...
4
by: opt_inf_env | last post by:
Hello, I know three ways to pass variables form one page to another. The first one is to declare and set session variable. In this case if one goes to another page (by clicking on hyperlink or...
1
by: Russell | last post by:
Hi there, I'm currently creating a .NET Web Application and I have a question about passing values from one screen to another. I previously used Session variables in the code to store these...
3
by: Lee | last post by:
Hi All How can I pass options from one webpage into another webpage. When the user clicks on the hyperlink I want them to be go to the next page but I need to pass in a number that the next...
2
by: Jim Heavey | last post by:
I know that I can create session variables and pass those values from one screen to another, but is there not a way to makes variables from one scree n available to another screen other then...
1
by: Eric | last post by:
Hello, I am trying to come up with the best way to pass large amounts of data from page to page, namely a data table. The user needs to enter data into a form in one page and confirm it on...
7
by: Khai | last post by:
First off, yes, I understand the crapload of tutorials out there, (well, rather, I understand there /are/ a crapload of tutorials out there), the problem is my comprehension. I'm trying to pass...
6
by: Kausar | last post by:
Hello All, How do i pass the value from a page that exists on some domain to another page that exists in subdomain. Regards Kausar
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.