Print Page | Close Window

Drop down menus

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=591
Printed Date: 29 March 2026 at 12:51am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Drop down menus
Posted By: ell_23
Subject: Drop down menus
Date Posted: 28 February 2003 at 6:26am

Hi folks

I am currently developing a website which will sell various fittings and valves.

I want the site to have a search function which will use dynamic drop down menus.

For example: The user will select from menu 1, this then populates menu 2 with values related to the selection.

The user then selets from menu 2, which then populates menu 3.

I want to have 4 menus in this search function.

I had looked at possibly using Javascript on the client side and storing a reference to each product in arrays.The user would then select in each menu and this would fill the next one with values from a related array....When all this was complete then the DB would be searched using the selections from the menus (using ASP)

However due to an increase in the number of products this is not viable, so I have to now look at using ASP each time the user selects from a menu it will reference the DB on the server.

i.e. user selects from menu 1, query sent to DB and menu 2 populated with values.....etc

I am a newbie to ASP, and have been trying to pick it up in the last month.

Has anyone got any ideas on how this problem could be solved??

If I haven't made the problem clear enough then I will be more than happy to elaborate.

Regards




Replies:
Posted By: ulfe
Date Posted: 28 February 2003 at 2:19pm

You could try to put the value in Querystring and post against the same page all the time:

url.asp?combo1=5
This triggers that you have made a selection in cbo #1, and when you make the roundtrip, you fill cbo #2 with the values you get when taking the cbo#1 value

If Request.Querystring("combo1") then
  Select * from table where field = Request.Querystring("combo1")
  ' Fill combo 2
End if

and for the next combo's

If Request.Querystring("combo2") then
  Select * from table where field = Request.Querystring("combo2")
  ' Fill combo 3
End if

Hope this might get you started in at least one direction



Posted By: Bunce
Date Posted: 01 March 2003 at 5:12am

http://www.atgconsulting.com/triplelist.asp - http://www.atgconsulting.com/triplelist.asp
http://www.atgconsulting.com/gofetch.asp - http://www.atgconsulting.com/gofetch.asp
http://www.atgconsulting.com/doublelist.asp - http://www.atgconsulting.com/doublelist.asp

Cheers,
Andrew



-------------
There have been many, many posts made throughout the world...
This was one of them.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net