ewang1205
asked on
what table structure can menu control work?
I have the following table. Can that work in a menu control as base table? Remember the column can expand to four, five, six? Thanks.
COUNTRY STATE CITY
USA TEXAS HOUSTON
USA TEXAS DALLAS
USA CALIFORNIA LA
COUNTRY STATE CITY
USA TEXAS HOUSTON
USA TEXAS DALLAS
USA CALIFORNIA LA
you may have to use an XmlDataSource
ASKER
This is what I am debating. I think option #2 is better. What do you think? Thanks.
Optoin #1: a flat table with 3 columns like the following. I think the menu control doesn't work well with this type of table structure. If I need to add 1 more column for county, then the menu control code will probably need to be modified.
COUNTRY STATE CITY
USA TEXAS HOUSTON
USA TEXAS DALLAS
USA CALIFORNIA LA
Option #2: a self-join table like the following. I think the menu control will work nicely with this table structure. If there is one more layer for county, there is no coding change needed for the menu control .net part.
Parent Child
TEXAS DALLAS
TEXAS HOUSTON
USA TEXAS
USA CALIFORNIA
CALIFORNIA LA
Optoin #1: a flat table with 3 columns like the following. I think the menu control doesn't work well with this type of table structure. If I need to add 1 more column for county, then the menu control code will probably need to be modified.
COUNTRY STATE CITY
USA TEXAS HOUSTON
USA TEXAS DALLAS
USA CALIFORNIA LA
Option #2: a self-join table like the following. I think the menu control will work nicely with this table structure. If there is one more layer for county, there is no coding change needed for the menu control .net part.
Parent Child
TEXAS DALLAS
TEXAS HOUSTON
USA TEXAS
USA CALIFORNIA
CALIFORNIA LA
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Countries
- USA
- Texas
- Houston
- Dallas
- California
-LA
you can filter the results using XPath expressions, but I am not sure of all the details.