473,396 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Updating drop-down list, based on selection from another d-d list

CJM
Not sure if this is entirely on-topic....

I would ideally like to present an initial list based on one DB table. The
user selects an item, and the 2nd list is updated to show items from the DB
related to the first selection.

As I understand it, there are a number of possible solutions, but I dont
know much about any of them, nor which is currently the recommended route.

This is going to be applied in an intranet application, so it gives me a bit
of freedom to use the technology I wish, but if there is an accessible
solution (as in WAI) that would be great.

Thanks
Jul 19 '05 #1
3 2379
CJM
"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:kV**************@cpmsftngxa06.phx.gbl...
Hello,

Thank you for using the community.

Regarding the problem, we can retrieve the records from database with ADO
and fill it in DropDownlist control. Once User select one in the first
dropdown list, the form will be submit and we can requery the database to
fill second dropdownlist. Here is a good sample on this issue, you may
refer to it:

http://www.designplace.org/tutorials.php?page=1&c_id=26


Luke,

Thanks but I wasn't clear enough in my explanation.

I want to avoid having to post the form...

I have a solution (not finalised yet); I'm using javascript and XML Data
Islands:

The user makes a selection from combo1. Javascript is used to call and asp
page which returns an XML structure, which the Javascript uses to populate
the 2nd combo.

Thanks

Chris
Jul 19 '05 #2
Hello,

Thank you for using the community.

Regarding the problem, we can retrieve the records from database with ADO
and fill it in DropDownlist control. Once User select one in the first
dropdown list, the form will be submit and we can requery the database to
fill second dropdownlist. Here is a good sample on this issue, you may
refer to it:

http://www.designplace.org/tutorials.php?page=1&c_id=26

Hope this help,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jul 19 '05 #3
Hi Chris,

This is also nice solution (Javascript and XML dataland). Within this
approach, all records will be sent to client at beginning. For more
information about XML data island, you may refer to:

http://msdn.microsoft.com/library/de...us/xmlsdk/htm/
xml_concepts2_2n03.asp

If you have further detail question on this, please feel free to post here.

Regards,

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Jul 19 '05 #4

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

Similar topics

7
by: Paige | last post by:
I have a database on my local machine that I make entries and corrections on. I'd like to be able to upload that to my server and have that update the database that's on the server. What I've been...
4
by: Sky Fly | last post by:
Hello all, I've written a stored procedure which runs OK for the first few thousand records it processes, then around about the 10,000th record it suffers a sudden and dramatic drop in...
8
by: pb648174 | last post by:
I have a single update statement that updates the same column multiple times in the same update statement. Basically i have a column that looks like .1.2.3.4. which are id references that need to...
5
by: deko | last post by:
How to run action query against linked table? I have an Access 2003 mdb with an Excel 2003 Workbook as a linked table. When I attempt to run an action query against the linked table I get this...
8
by: Zest4Csharp | last post by:
hi, I have a database table without a key field. I managed to view the contents of the table through a DataSet in a DataGrid in C#. The user can edit the data in the grid. Can someone show me how...
16
by: Gary | last post by:
I have a form that takes one Contact record and edit's it. The routine used is as follows: Private Sub ContactMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
4
by: Dave Taylor | last post by:
I've been using the dataset designer in Visual Studio to create typed datasets for my application by dragging over tables from the Server Explorer and dropping them into the designer. The problem...
2
by: dansalmada | last post by:
hi I need to UPDATE or DELETE a view (query) that is on the server But the UPDATE needs to be made to the CODE of the view and not to the data it returns. Please help
7
by: Chantelle | last post by:
I've been delighted with the responses I've had from all you guys in relation to the two queries I raised recently and I'm back with another challenge! Here goes. I've got this DB in A2K that...
2
by: breimer | last post by:
I have created a simple database with a single date field & inserted the current date. What I need to do is alter the day portion of this date field to be a value of 01 if the day of the current...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.