469,934 Members | 2,815 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,934 developers. It's quick & easy.

how to load another web form using the drop down list box

hi all
dis yasin<yasinkoraya@yahoo.com>
i am creating a web site for a company at the moment. this is the scenario:
the company has many stores throughtout the country. on the home page they expect to see a dropdownlist box/ combo box which has the names of their stores. if one of the entries is clicked it should open another webform/web page which has details about that store.

i hav already created the home page with the combo box but the problem is what code/ideas do i use so that the other web pages can be opened????

Any help/ideas/code will be highly appreciated.

thanks in advance.

regards
Feb 20 '07 #1
1 998
jhardman
3,406 Expert 2GB
If you want an immediate response (I.E the moment an option is clicked a new window opens giving them the new form) then you will need to use javascript. If you want them to hit a submit button first, go to an asp that says:
Expand|Select|Wrap|Line Numbers
  1. <%
  2. '   "store" is the name of the select box
  3. select case request.form("store")
  4. case "punto alta" 'user chose the store in Punto Alta
  5.    response.redirect "puntoAlta.htm"
  6. case "bariloche" 'I hope the user picks up some chocolates while in Bariloche
  7.    response.redirect "bariloche.htm"
  8. case "general acha" 'Or some kichy gaucho souvenirs in the pampa
  9.    response.redirect "generalAcha.htm"
  10. end select
  11.  
There are better ways to do this, but for a newbie, this would work well. Oh, to use response.redirect you might need to turn on the response buffer, I don't remember the syntax off the top of my head.

Is this what you wanted?
Feb 20 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Flos | last post: by
6 posts views Thread by MP | last post: by
9 posts views Thread by John Kirksey | last post: by
4 posts views Thread by Greg Scharlemann | last post: by
3 posts views Thread by ghjk | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.