473,386 Members | 1,786 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,386 software developers and data experts.

Hierarchical lists in DropDownLists

Hi all,

I'm writing an image cataloguing system in asp.net and SQLserver. The
system allows hierarchical keywords to be added to the image records.

I've represented the keywords in tables with 'id' and 'text' fields for
each keyword. The table of second level keywords also has a 'parentID'
field linking it to one keyword from the first level.

I am successfully displaying both levels of keywords in ddl's in a
datagrid but I now want to filter the second level values based on the
image id of selected first level keyword.

The dropdownlists are bound to Dataviews so I guess filtering the
dataview is the correct way to go? What's the best way of going
about this? and how can I reload the values in the second list after
changing the selected value in the level one ddl?

Thanks in advance for any help,

Paul

Apr 25 '06 #1
1 1153
This page explains how to do it quite well.

http://www.webswapp.com/codesamples/...s/default.aspx

"p.mc" wrote:
Hi all,

I'm writing an image cataloguing system in asp.net and SQLserver. The
system allows hierarchical keywords to be added to the image records.

I've represented the keywords in tables with 'id' and 'text' fields for
each keyword. The table of second level keywords also has a 'parentID'
field linking it to one keyword from the first level.

I am successfully displaying both levels of keywords in ddl's in a
datagrid but I now want to filter the second level values based on the
image id of selected first level keyword.

The dropdownlists are bound to Dataviews so I guess filtering the
dataview is the correct way to go? What's the best way of going
about this? and how can I reload the values in the second list after
changing the selected value in the level one ddl?

Thanks in advance for any help,

Paul

Apr 25 '06 #2

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

Similar topics

1
by: Marlene harkcom | last post by:
I've got a datagrid with 5 bound columns in it as well as an edit/update/cancel column. I'm binding this to a dataset. One of the fields is always going to be one of three values. I want the...
0
by: theo | last post by:
Hello..I have a similar issue as yesterday but the situation has slightly changed so perhaps someone can shed some more light on the issue... Program flow - load file,extract xml text tags from...
4
by: | last post by:
Hi All I have a question about re-using a drop downlist box across several questions on a questionaire like form. I will include code after some explaination. I thought i could make a...
2
by: Michel Couché | last post by:
Hello, I would like to use 2 hierarchical dropdown lists. I mean that the choices offered by the second must be dependent upon the value selected in the first drop down. I found the extension...
0
by: Anthony | last post by:
So I've got three dropdowns in a datagrid footer (to add records). I need them to cascade, in the first one I have three choices, in the second one I have anywhere from 3 to 10 choices, depending...
1
by: Ed Chiu | last post by:
Hi, I have 2 dropdown lists on an ASP.Net page, the first is a list of states of US, the second is City list. When user selects a state, the web page does a postback, create a DB connection and...
1
by: cgian31 | last post by:
I have implemented a website where in a page are represented the data of one record, using cascade dropdown lists in 2 levels, within the same page/record. According to the selection in the...
12
by: Steve | last post by:
I have been studying the Adjacency List Model as a means of achieving a folder structure in a project I am working on. Started with the excellent article by Gijs Van Tulder ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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...

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.