Customizing the Query based on a variable passed in the URL |
2/20/2008 15:15:00 | |
| ASPRunnerPro General questions | ||
|
G
gr8britton author
Hi! A friend of mine just turned me onto your product and I am trying it out. I want to be able to pass a variable with the location # in the URL (i.e. - http://www.mysite.com/page.asp?loc=23)). I figure I would process this in the events but I am just not figuring it out. How would I append to the SQL so it adds a WHERE clause like... |
||
|
|
Sergey Kornilov admin 2/20/2008 |
|
Use Request.QueryString("loc") variable. strSQL = strSQL & " WHERE LocationID='" & Request.QueryString("loc") & "'" |
|
|
G
|
gr8britton author 2/20/2008 |
|
That was exactly it! Thank you so much for the info and your help. I have a couple of other tweaks I would do to make it live, but this shows me I can do what I need to do. And, support is fast! |
|
|
G
|
gr8britton author 2/25/2008 |
|
Next Step... |
|
|
|
Sergey Kornilov admin 2/26/2008 |
|
Rob, <A class=tablelinks id=viewlink{$row.1recno} href="Issues_view.asp?{$row.1editlink}">View</A>
<A class=tablelinks id=viewlink{$row.1recno} |
|
|
G
|
gr8britton author 2/26/2008 |
|
Thank you for the info. I'll give that a shot today. |
|
|
G
|
gr8britton author 2/26/2008 |
|
That worked. Thanks! |
|
|
G
|
gr8britton author 2/28/2008 |
|
This has now led to a new issue. Since my list is generated by the ?loc=## in the URL, the Pagination doesn't work. The pagination, it appears, ads ?goto. How can I:
|
|
|
|
Sergey Kornilov admin 2/29/2008 |
|
Please contact me directly with your order number. |
|
|
G
|
gr8britton author 3/4/2008 |
|
Will do...as soon as my buyer gets it purchased! Thanks. Please contact me directly with your order number. |
|