By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,504 Members | 1,212 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,504 IT Pros & Developers. It's quick & easy.

Repopulate List box

P: n/a
Hi

I hope anyone can give me a hint how to continue

I have an ASP page containing 3 list boxes. When the page is opened the list
boxes are populated with some default values from a database and an array on
the page is also populated with values from the same database.

Depending on the choice in the first list box I want to repopulate the
second list box with values from the array depending on the choice in the
first list box

Any Suggestion

Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Mon, 15 Nov 2004 13:51:20 GMT, "Christer Alkerud"
<ca******@hotmail.com> wrote:
I have an ASP page containing 3 list boxes. When the page is opened the list
boxes are populated with some default values from a database and an array on
the page is also populated with values from the same database. Depending on the choice in the first list box I want to repopulate the
second list box with values from the array depending on the choice in the
first list box


Client side it's DHTML or JavaScript, using ASP it's a new query to
the server based on a JavaScript trigger of the selection. Google
"ASP Dynamic Dropdown Lists" or the like for lots of examples.

Jeff
Jul 22 '05 #2

P: n/a

"Christer Alkerud" <ca******@hotmail.com> wrote in message
news:sv*****************@newsb.telia.net...
Hi

I hope anyone can give me a hint how to continue

I have an ASP page containing 3 list boxes. When the page is opened the list boxes are populated with some default values from a database and an array on the page is also populated with values from the same database.

Depending on the choice in the first list box I want to repopulate the
second list box with values from the array depending on the choice in the
first list box

Any Suggestion


You can submit back to the same page - but you'll have to code it so that if
no querystring then put in the default values, otherwise put in based on
user's choices.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004
Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.