|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Passing data in URL
Hi
I am passing a variable called businessID from one page to the next page in my URL. On the next page I want to use the value of businessID to query my access database in a SELECT statement. How do I put this in my SELECT statement? "SELECT * from tlbbusiness where businessID = (im not sure) " Thanks for any help James |
|
#2
|
|||
|
|||
|
Request.QueryString
Quote:
Since you are passing the businessID in the URL you use Request.QueryString to return the value of businessID. Code:
"SELECT * from tlbbusiness where businessID = " & Request.QueryString("businessID")
This will put the value of businessID into your SQL query. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Passing data in URL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|