在网页中显示数据列表 [英] displaying a list of data in a web page

查看:149
本文介绍了在网页中显示数据列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在数据库中有一个名为"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
1st
EFG


Events Students Name Position
 Run XYZ 1St
ABC 2ND
MNO 3RD
High Jump PQR 1st
EFG 2nd
KLM 3rd


推荐答案

为什么不签出
Why dont you check out this[^] article. It has the similar scenario you discussed.


您好,

请通过以下链接:
http://www.dotnetfunda.com/articles/article1138-merge-data- columns-in-gridview.aspx [ ^ ]

http://weblogs.asp.net/brijmohan/archive/2011/09/03/rows-and-columns-merging-in-asp-net-gridview-control.aspx [ http://www.c-sharpcorner.com/uploadfile/eb5fab /merge-same-data-column-in-gridview/ [
Hello,

Please go through following link:
http://www.dotnetfunda.com/articles/article1138-merge-data-columns-in-gridview.aspx[^]

http://weblogs.asp.net/brijmohan/archive/2011/09/03/rows-and-columns-merging-in-asp-net-gridview-control.aspx[^]

http://www.c-sharpcorner.com/uploadfile/eb5fab/merge-same-data-column-in-gridview/[^]


使用gridview根据需要显示此项目或中继器.外观 [ ^ ]
use gridview to show this item or repeater as you want. look This[^]


这篇关于在网页中显示数据列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆