在网页中显示数据列表 [英] displaying a list of data in a web page
本文介绍了在网页中显示数据列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在数据库中有一个名为"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[^] 这篇关于在网页中显示数据列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取
|
15天全站免登陆
|