473,499 Members | 1,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

12 New Member
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 1046
jhardman
3,406 Recognized Expert Specialist
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

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

Similar topics

6
1831
by: Flos | last post by:
Hello! (sorry for my bad english) the following problem: i have i site where one must enter data which is safed in a database. There are also drop down lists, which values are database...
14
3082
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ;...
6
4115
by: MP | last post by:
Hello I want to have a public property (and Brows able) in one control, I use this code: public System.Windows.Forms.Form recordForm get { return _recordForm;} set {_recordForm = value;}
9
21625
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter...
1
2334
by: tony | last post by:
Hello!! Hello Victor! I use a product called flygrid to create grid tables. In many of my forms I create such grid tables. Some columns in these grid tables is of type drop down list where I...
4
2604
by: Greg Scharlemann | last post by:
I'm trying to setup a dyamic dropdown list that displays a number of text fields based on the selected number in the dropdown. The problem I am running into is capturing the data already entered...
1
6742
by: inbamca | last post by:
Hi, Functionality is like when pressing 'CTRL+click' on drop down list in the main jsp page, a popup window appears with a list box contains all the values of the drop down clicked on the main page....
3
7326
by: penny111 | last post by:
Hi there, For my application, i need to have 3 drop down lists 1. drop down list of folder names 2. drop down list of documents in the folder selected 3. drop down list of instances of the...
3
2657
by: ghjk | last post by:
i have two drop down boxes and when user select District from 1st drop down box , the cityis in that district should load to the second drop down. My code is below. But it is not working. Please...
1
13701
by: dmj07 | last post by:
Hi all, I was wondering of an easy way to set the selected value of a drop down list by using a value retrieved from the database. Here is my code: SqlCommand cmdUser = new...
0
7006
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4917
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4597
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3088
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
294
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.