Thanks for all of you replied my question. I modified the code from the
DependentLists.asp example to my asp page and it works perfectly.
My next question is if it is possible that I can make a third drop down
box and the data in the third drop down box will depend on the item
selected from the second drop down box? Just like the data in the second
drop down box is depended on the selected item from first dropdown box?
and also the third drop down box is only enabled when the user select a
item from the second drop down box.
Thanks again!
If the lists are small you can. but when you say a 100 records in the first
list and each item in that list sets the second that has 100 each and that
sets the third with a 100 each you can easily get a million records that you
would have to pass. Use the onfocus event in the 3rd box to check if the
second box has a value. If not pop up a message and set the focus to the 2nd
box. In the on change event of the 2nd list, determine which list you need
and make it visible.
>From: "Li Wu" <liwu@g...>
>Reply-To: "ASP Web HowTo" <asp_web_howto@p...>
>To: "ASP Web HowTo" <asp_web_howto@p...>
>Subject: [asp_web_howto] [pro_vb] Re: Self-reference page
>Date: Fri, 26 Jan 2001 20:14:29 -0800
>
>Thanks for all of you replied my question. I modified the code from the
>DependentLists.asp example to my asp page and it works perfectly.
>
>My next question is if it is possible that I can make a third drop down
>box and the data in the third drop down box will depend on the item
>selected from the second drop down box? Just like the data in the second
>drop down box is depended on the selected item from first dropdown box?
>and also the third drop down box is only enabled when the user select a
>item from the second drop down box.
>Thanks again!
>
>