|
| |
|
|
Marcos Hedges
Posts: 14 From: Guaynabo, PR Status: offline
|
Universal results.asp ??? - 10/2/2001 20:55:00
Hello - Is there a way to have one results page which can be accessed by both hyperlinks and search forms? If so, what would be the DRW settings? Thanks! Marcos
|
|
|
|
Marcos Hedges
Posts: 14 From: Guaynabo, PR Status: offline
|
RE: Universal results.asp ??? - 10/2/2001 13:37:00
Allow me to rephrase my angst:Can I have one single results.asp which is accessed by a [menu] link as well as a search form, or more than one link? Example: One link is for guitars, and one link is for Gibson guitars. Can both links point to the same results.asp? I have a very crude working model at the moment. In my particular case, I currently have a search form in one page (brandname)and a link in another (type of instrument). If I type in the brandname on the search form, everything is peaches and cream. However, if I click on the link, I get "no records returned". Is there a way the form and link can coexist, pointing to the same DRW (having the DRW display several types of results)? Or do I have to create a DRW for every type of query (hope not)? Thanks! Marcos
|
|
|
|
Mojo
Posts: 2441 From: Chicago Status: offline
|
RE: Universal results.asp ??? - 10/2/2001 17:36:00
You would need to use some scripting. At the top of your page you would grab the value from either the search form or the query string, it does not matter. Then, check for values, if they exist move on, if not check the other (form or querystring).Something like: <% Dim strValue strValue = Request.Form("field1") If strValue = "" Then strValue = Request.Querystring("field1") End If %> You would want to place some error handling in case a user just stumbled upon the page. Joe Hmmm, after re-reading your question I am not sure I gave you the answer you were looking for... [This message has been edited by jbennett (edited 10-02-2001).]
|
|
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
|
|
|