|
| |
|
|
LowSociety
Posts: 3 Joined: 3/30/2009 Status: offline
|
Passing Parameters - struggling with frontpage - 3/30/2009 15:49:45
Hi, Please excuse me for asking what may be a dumb question, but I'm fairly new to working with ASP, particularly in FrontPage. I have an intranet site that uses FrontPage 2003 to connect to an Access 2003 database and displays a list of choices for the visitor to select from one of the tables. When a user clicks on an option, it takes them to a second page and users a parameter to filter the results based on their selection from the previous page. So far so good, however... On the second page, I want the user to select from another list of choices (e.g. a dependant drop-down field) that will allow them to further filter their selection and display the results at the bottom of the page. When it filters on the second page, it 'forgets' the parameter passed from the first page. How do I get the second page to remember the parameter that was passed, so the visitor can make further selections on page 2, based upon the original selection in page 1. Hope this makes sense! Thanks for any help or suggestions provided.
|
|
|
|
BeTheBall
Posts: 6493 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
RE: Passing Parameters - struggling with frontpage - 3/30/2009 15:55:36
Welcome! Use request.querystring to get the passed parameter. For example, on page 2 you should be able to insert something like this to see the passed parameter: <% Response.write(request.querystring("NameOfParameter") %>
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
LowSociety
Posts: 3 Joined: 3/30/2009 Status: offline
|
RE: Passing Parameters - struggling with frontpage - 3/30/2009 16:33:40
Hi, Thanks for the welcome and the quick reply. I am able to use the code you suggested to see the parameter passed to the second page, but when I try and pass the parameter either to another page with a second additional parameter, or to refresh the second page with both parameters, the first parameter gets lost. Sorry if I'm not explaining myself very clearly. On the first page, I may select option 1, 2 or 3. If I select Option 2... On the second page I can see Option 2 as the passed parameter. But If I select another option a,b, or c - If I choose option c... On the third page (or second page if I try and pass the parameters back to the same page), it either forgets both parameters, or at best, it only passes option c and forgets Option 2 (the first parameter). Thanks, Gary
|
|
|
|
LowSociety
Posts: 3 Joined: 3/30/2009 Status: offline
|
RE: Passing Parameters - struggling with frontpage - 3/30/2009 20:48:54
Thank you very much. That appears to be exactly the kind of thing that I'm trying to achieve. I'll have a look at the code and give it a try. Your help is really appreciated - thanks again. Gary
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|