开发者

How to implement and display master-detail data on a page

There are 2 tables on a page. How can I present master-detail relationship on an ASP.NET page?

The Count开发者_运维问答ry presents at most two city names.

I'd like to do this without using server controls. using div with array?

Country table:

ID CountryName
1    USA
2    CHINA
3    JP
4    FR


City table:

ID  CountryID  cityname
1      1         NewYork
2      1         Michigan
3      1         Mississippi
4      2         Beijing
5      2         ShangHai
6      2         HangZhou
7      3         Tokyo

I'd like to show something like this:

USA               CHINA              JP
NewYork Michigan  Beijing ShangHai   Tokyo
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜