在网页中显示数据列表
问题描述:
我在数据库中有一个名为"Student"的表,数据库中的表结构如下所示
I have a table in a database named as "Student" and the tabel structure in the database is as follows
报价:
活动 | 学生姓名 | 位置 |
运行 | XYZ | 1St |
运行 | ABC | 2ND |
运行 | MNO | 3RD |
跳高 | PQR | 1st |
跳高 | EFG | 第二名 |
跳高 | KLM | 第三名 |
Events | Students Name | Position |
Run | XYZ | 1St |
Run | ABC | 2ND |
Run | MNO | 3RD |
High Jump | PQR | 1st |
High Jump | EFG | 2nd |
High Jump | KLM | 3rd |
现在,我想使用任何数据控件在我的网页中以表格视图显示上述数据,该控件可从位于asp.net数据库中的上述表格"Student"中获取数据,就像这样
Now I want to show the above data in a my web page in a table view using any data control which fetch data from the above table "Student" located in database in asp.net like this
报价:
活动 | 学生姓名 | 职位 | |||||||||||||||||
运行 | XYZ | 1St | |||||||||||||||||
2ND | |||||||||||||||||||
3RD | |||||||||||||||||||
PQR | 1st | ||||||||||||||||||
EFG | KLM |
答
为什么不签出 ^ ]文章.它与您讨论的情况类似. Why dont you check out this[^] article. It has the similar scenario you discussed. 您好, Hello, 使用gridview根据需要显示此项目或中继器.外观此 [ ^ ] use gridview to show this item or repeater as you want. look This[^]
查看更多
|