I have master-detail relationship. Basically I have a list of states and a list of towns per state.
I want for it to display something like
- Oklahoma
- > Tulsa
- > Oklahoma City
- Arizona
- > Phoenix
- > etc etc
and etc.
The city names and the state names are stored in different tables with each city containing a state_id
I am using SubSonic3(ActiveRecord) for querying. (using ObjectDataSource for databinding controls)
What would be the best way to do this in an ASP.Net page? The only ideas I can think of involve complicated nested databinding which I can't get to work.