473,549 Members | 2,784 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question about pull down menus on asp forms.

I have two questions about pulldown menus on forms.

1: Can I have the options of one pulldown menu be dictated by the
choice from another pulldown menu (example beow)?

2: Can I have a form be submitted when a choice is made in a pulldown
menu (example below)?

Example of question 1:

I have a form with two pulldown menus. The first one has two options.

1: LETTERS
2: NUMBERS

If I choose LETTERS, then the second menu offers the options A, B, and
C.
If I choose NUMBERS, the the second menu offers the options 1, 2, and
3.

Example of question 2:

Lets say (using the example above) I choose LETTERS from menu 1.
I then choose B from the menu 2. Once I choose the last option, I
would like to have the form automatically submit.

This functionality is new to me so I am not sure how to go about
creating the code. Any samples you can offer would be greatly
appreciated. Here is how I would make the form for the example above
but past that, I am lost.

<form method="POST" action="FormPro cesspage.asp">

<p><select size="1" name="menu1">
<option>Letters </option>
<option>Numbers </option>
</select></p>

<p><select size="1" name="menu2">
<option>A or 1</option>(dictate d by menu1)
<option>B or 2</option>(dictate d by menu1)
<option>C or 3</option>(dictate d by menu1)
</select></p>

<p><input type="submit" value="Submit"> </p>

</form>

Thank you for taing the time to read my inquiry, and for any help (and
hopfully code samples) you can offer.

Mar 23 '07 #1
7 2436
Brave wrote on 23 mrt 2007 in microsoft.publi c.inetserver.as p.general:
I have two questions about pulldown menus on forms.

1: Can I have the options of one pulldown menu be dictated by the
choice from another pulldown menu (example beow)?

2: Can I have a form be submitted when a choice is made in a pulldown
menu (example below)?

Example of question 1:

I have a form with two pulldown menus. The first one has two options.

1: LETTERS
2: NUMBERS

If I choose LETTERS, then the second menu offers the options A, B, and
C.
If I choose NUMBERS, the the second menu offers the options 1, 2, and
3.

Example of question 2:

Lets say (using the example above) I choose LETTERS from menu 1.
I then choose B from the menu 2. Once I choose the last option, I
would like to have the form automatically submit.

This functionality is new to me so I am not sure how to go about
creating the code. Any samples you can offer would be greatly
appreciated. Here is how I would make the form for the example above
but past that, I am lost.

<form method="POST" action="FormPro cesspage.asp">

<p><select size="1" name="menu1">
<option>Letters </option>
<option>Numbers </option>
</select></p>

<p><select size="1" name="menu2">
<option>A or 1</option>(dictate d by menu1)
<option>B or 2</option>(dictate d by menu1)
<option>C or 3</option>(dictate d by menu1)
</select></p>

<p><input type="submit" value="Submit"> </p>

</form>

Thank you for taing the time to read my inquiry, and for any help (and
hopfully code samples) you can offer.
And what is your ASP question?

Remember: ASP is a platform for serverside code, either vbs or jscript,
ans your question concerns only clientside code.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mar 23 '07 #2

"Brave" <br*********@ya hoo.comwrote in message
news:11******** **************@ y66g2000hsf.goo glegroups.com.. .
>I have two questions about pulldown menus on forms.

1: Can I have the options of one pulldown menu be dictated by the
choice from another pulldown menu (example beow)?

2: Can I have a form be submitted when a choice is made in a pulldown
menu (example below)?

Example of question 1:

I have a form with two pulldown menus. The first one has two options.

1: LETTERS
2: NUMBERS

If I choose LETTERS, then the second menu offers the options A, B, and
C.
If I choose NUMBERS, the the second menu offers the options 1, 2, and
3.

Example of question 2:

Lets say (using the example above) I choose LETTERS from menu 1.
I then choose B from the menu 2. Once I choose the last option, I
would like to have the form automatically submit.

This functionality is new to me so I am not sure how to go about
creating the code. Any samples you can offer would be greatly
appreciated. Here is how I would make the form for the example above
but past that, I am lost.

<form method="POST" action="FormPro cesspage.asp">

<p><select size="1" name="menu1">
<option>Letters </option>
<option>Numbers </option>
</select></p>

<p><select size="1" name="menu2">
<option>A or 1</option>(dictate d by menu1)
<option>B or 2</option>(dictate d by menu1)
<option>C or 3</option>(dictate d by menu1)
</select></p>

<p><input type="submit" value="Submit"> </p>

</form>

Thank you for taing the time to read my inquiry, and for any help (and
hopfully code samples) you can offer.
Although I live in the same country as Evertjan you and everyone else should
notice that we are not all the same...
so here's what you are actualy looking for:
http://classicasp.aspfaq.com/forms/h...n-another.html
Mar 23 '07 #3
Marc wrote:
Although I live in the same country as Evertjan you and everyone else
should notice that we are not all the same...
so here's what you are actualy looking for:
http://classicasp.aspfaq.com/forms/h...n-another.html
Thank you for providing the answer; however, by not also redirecting him to
a client-side scripting newsgroup, you did a little disservice to the
poster. Note that your reply to his offtopic post came 5 hours after he
posted it. If he had posted it to a client-side scripting group (such as
microsoft.publi c.scripting.jsc ript), I submit he would have had an answer in
minutes instead of hours. My goal when I tell a user he's posted in the
wrong place is to help the user get assistance more efficiently, not to play
net cop. I like to think that that is Evertjian's goal as well.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Mar 24 '07 #4
ASP example of multiple dependent dropdowns can be found here...

http://www.aspkey.net/aspkey/_articl...icles.asp?#100

"Brave" <br*********@ya hoo.comwrote in message news:11******** **************@ y66g2000hsf.goo glegroups.com.. .
>I have two questions about pulldown menus on forms.

1: Can I have the options of one pulldown menu be dictated by the
choice from another pulldown menu (example beow)?

2: Can I have a form be submitted when a choice is made in a pulldown
menu (example below)?

Example of question 1:

I have a form with two pulldown menus. The first one has two options.

1: LETTERS
2: NUMBERS

If I choose LETTERS, then the second menu offers the options A, B, and
C.
If I choose NUMBERS, the the second menu offers the options 1, 2, and
3.

Example of question 2:

Lets say (using the example above) I choose LETTERS from menu 1.
I then choose B from the menu 2. Once I choose the last option, I
would like to have the form automatically submit.

This functionality is new to me so I am not sure how to go about
creating the code. Any samples you can offer would be greatly
appreciated. Here is how I would make the form for the example above
but past that, I am lost.

<form method="POST" action="FormPro cesspage.asp">

<p><select size="1" name="menu1">
<option>Letters </option>
<option>Numbers </option>
</select></p>

<p><select size="1" name="menu2">
<option>A or 1</option>(dictate d by menu1)
<option>B or 2</option>(dictate d by menu1)
<option>C or 3</option>(dictate d by menu1)
</select></p>

<p><input type="submit" value="Submit"> </p>

</form>

Thank you for taing the time to read my inquiry, and for any help (and
hopfully code samples) you can offer.

Mar 24 '07 #5

"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcomwrote in message
news:Om******** ******@TK2MSFTN GP05.phx.gbl...
Marc wrote:
Although I live in the same country as Evertjan you and everyone else
should notice that we are not all the same...
so here's what you are actualy looking for:
http://classicasp.aspfaq.com/forms/h...n-another.html
>
Thank you for providing the answer; however, by not also redirecting him
to
a client-side scripting newsgroup, you did a little disservice to the
poster. Note that your reply to his offtopic post came 5 hours after he
posted it. If he had posted it to a client-side scripting group (such as
microsoft.publi c.scripting.jsc ript), I submit he would have had an answer
in
minutes instead of hours. My goal when I tell a user he's posted in the
wrong place is to help the user get assistance more efficiently, not to
play
net cop. I like to think that that is Evertjian's goal as well.
Bob, I think your too generous.

Evertjan first asked this question:-

'And what is your ASP question?'

Can that be read as anything other than sarcastic?

Sarcasm has it's place in the face of the willfully ignorant but not
directed to an original post.

What defines off topic anyway?

Are you entirely sure that can't ASP at least be part of the solution?

I've got loads of such circumstances where supplementary posts to the server
are necessary to build the content of other controls.

If such a question is off topic why does aspfaq contain an answer?


Mar 25 '07 #6
Anthony Jones wrote:
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcomwrote in message
news:Om******** ******@TK2MSFTN GP05.phx.gbl...
>Marc wrote:
>>Although I live in the same country as Evertjan you and everyone
else
should notice that we are not all the same...
so here's what you are actualy looking for:
http://classicasp.aspfaq.com/forms/h...n-another.html
>>
Thank you for providing the answer; however, by not also redirecting
him
to
>a client-side scripting newsgroup, you did a little disservice to the
poster. Note that your reply to his offtopic post came 5 hours after
he
posted it. If he had posted it to a client-side scripting group
(such as microsoft.publi c.scripting.jsc ript), I submit he would have
had an answer
in
>minutes instead of hours. My goal when I tell a user he's posted in
the
wrong place is to help the user get assistance more efficiently, not
to
play
>net cop. I like to think that that is Evertjian's goal as well.

Bob, I think your too generous.
Maybe.
What defines off topic anyway?

Are you entirely sure that can't ASP at least be part of the solution?
Of course it can be, but dynamic lists ALWAYS involve client-side scripting.
>
I've got loads of such circumstances where supplementary posts to the
server
are necessary to build the content of other controls.
I really was responding to this particular case, which clearly did not
involve a supplementary post to the server. Forced to make a distinction, I
would say that asking how to code the page that provides the response to
that supplemental post is ontopic. Asking how to write the client-side
script to cause that supplemental post to be made is better handled by the
javascript experts over in the scripting groups. If you're an expert in both
technologies, feel free to provide an answer to the question. I know I have
provided answers in similar situations. I'm just saying the answer could be
more quickly obtained in the scripting newsgroup.
If such a question is off topic why does aspfaq contain an answer?
I can't speak for Aaron, but I would assume it's a concession to its being
asked so frequently. You will note that he really does not provide an answer
in that article except for providing links to javascript solutions.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Mar 25 '07 #7
On Mar 25, 2:56 pm, "Bob Barrows [MVP]" <reb01...@NOyah oo.SPAMcom>
wrote:
Anthony Jones wrote:
"Bob Barrows [MVP]" <reb01...@NOyah oo.SPAMcomwrote in message
news:Om******** ******@TK2MSFTN GP05.phx.gbl...
Marc wrote:
Although I live in the same country as Evertjan you and everyone
else
should notice that we are not all the same...
so here's what you are actualy looking for:
http://classicasp.aspfaq.com/forms/h...opdown-depend-...
Thank you for providing the answer; however, by not also redirecting
him
to
a client-side scripting newsgroup, you did a little disservice to the
poster. Note that your reply to his offtopic post came 5 hours after
he
posted it. If he had posted it to a client-side scripting group
(such as microsoft.publi c.scripting.jsc ript), I submit he would have
had an answer
in
minutes instead of hours. My goal when I tell a user he's posted in
the
wrong place is to help the user get assistance more efficiently, not
to
play
net cop. I like to think that that is Evertjian's goal as well.
Bob, I think your too generous.

Maybe.
What defines off topic anyway?
Are you entirely sure that can't ASP at least be part of the solution?

Of course it can be, but dynamic lists ALWAYS involve client-side scripting.
I've got loads of such circumstances where supplementary posts to the
server
are necessary to build the content of other controls.

I really was responding to this particular case, which clearly did not
involve a supplementary post to the server. Forced to make a distinction, I
would say that asking how to code the page that provides the response to
that supplemental post is ontopic. Asking how to write the client-side
script to cause that supplemental post to be made is better handled by the
javascript experts over in the scripting groups. If you're an expert in both
technologies, feel free to provide an answer to the question. I know I have
provided answers in similar situations. I'm just saying the answer could be
more quickly obtained in the scripting newsgroup.
If such a question is off topic why does aspfaq contain an answer?

I can't speak for Aaron, but I would assume it's a concession to its being
asked so frequently. You will note that he really does not provide an answer
in that article except for providing links to javascript solutions.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"- Hide quoted text -

- Show quoted text -
Thank you to everyone for taking the time, and thanks for giving me a
different group to ask these questions. I have always been happy withe
response I get from my posts, and I still am. EVERYONE have a great
day!

Mar 27 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5824
by: Rich | last post by:
We are preparing a page with twelve (12) drop down option/select menus, arranged vertically. It works, and it is what the user needs. The widths of the menu boxes are random now, but is there is a way to control the WIDTH of the menu boxes, so they would all be alike? Thank you for any help Rich
6
2391
by: Bonge Boo! | last post by:
This has got to be obvious, but I can't make it work. I have a form called with 3 pull down menus. They are linked to a database which generates the values for the <SELECT? Pull-downs. Lets say I have values selected for all three pull down menus. When I change the first "top-level" menu I want to reset both the second and third menus...
55
4617
by: Steve Jorgensen | last post by:
In a recent thread, RKC (correctly, I believe), took issue with my use of multiple parameters in a Property Let procedure to pass dimensional arguments on the basis that, although it works, it's not obvious how the code works if you don't know the intricacies of the Property Let/Get syntax. Likewise, I dislike (and code to minimize the use...
2
2301
by: Rich | last post by:
Hello, I have set up a multithreading routine in a Test VB.net proj, and it appears to be working OK in debug mode and I am not using synchronization. Multithreading is a new thing for me, and I just wanted to ask if I am missing anything based on the following scenario. My test app pulls data from a large external data source which...
2
3092
by: Keith Burns | last post by:
Hi, I have seen two entries in the archives for this topic: 1. Uses hypertext, not a pulldown menu to feed parameters back to the python CGI 2. The other actually used Java. Is there a way using Python for CGI such that when a user selects an item from one pull down menu (ie FRUIT or VEGETABLE or MEAT) that another pull
1
1677
by: dkimbrell | last post by:
Hi there, I'm very novice to web design. I'm trying to make a pulldown menu, but the formatting keeps getting screwed up when you roll the mouse over it. Please see www.boundarysys.com for what I'm talking about. Before the mouse touches the pulldown, the vertical height of the menubar is perfect. As soon as the mouse rolls over it, it...
5
1693
by: Byron | last post by:
I need to create an application that uses primarily a single form rather than an SDI that creates a new form for everythting. However, I don't want an MDI style application since the users I'm dealing with would be overwhelmed with it. The approach I tried in the past was to use MDI, but made all the child windows occupy the entire parent...
5
3977
by: giandeo | last post by:
Hello Experts. Could you find a solution for this problem please! I have the following tables in Access Database Table Name: origin Fields Names: country, countrycode Table Name: make Fields Names: countrycode, make
12
1277
by: art | last post by:
Hi, I'm sure a PHP genius will know this one. I need to create 3 linked drop down menus on the page. The data is coming from Mysql / PHP script. I see lots of examples with this in Javascript, but I am getting the data from my PHP script via MySQL.
0
7518
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7469
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5368
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5087
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3498
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1935
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 we have to send another system
0
757
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.