我想在不使用gridview的情况下显示数据库中的数据 [英] I want to display the data from database without using gridview

查看:74
本文介绍了我想在不使用gridview的情况下显示数据库中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将数据从数据库显示到.aspx页面,使用Gridview可以在asp.net中显示,但我不想使用gridview控件显示,是否有其他任何显示数据的方式除了使用gridview之外,还有谁能告诉我如何在表格中显示数据。

I was trying to display the data from database into an .aspx page, Using Gridview it is possible to display in asp.net, but i don't want to display using gridview control, Is their any other way to display data other than using gridview, could anyone please tell me how to display the data in table.

推荐答案

如果你显示列表,那么你必须尝试这两种方法

使用HTML

http:/ /stackoverflow.com/questions/13860490/show-data-in-asp-net-html-table [ ^ ]



使用Repeater

http://www.dotnetfox.com/ article / display-data-with-repeater-control-in-Asp-Net-1110.aspx [ ^ ]
If you are showing list then you must try this both methods
using HTML
http://stackoverflow.com/questions/13860490/show-data-in-asp-net-html-table[^]

using Repeater
http://www.dotnetfox.com/articles/display-data-with-repeater-control-in-Asp-Net-1110.aspx[^]


您可以随意显示数据,例如,段落,表格,< li> 元素, < td> < dd> 元素,任何内容。问题归结为知道如何使用ASP.NET和ADO.NET。如果您不知道,那么您需要全部学习,如果您了解一般的.NET编程,这并不是非常难。

-SA
You can display data anyway you want, say, in paragraphs, tables, <li> elements, <td> and <dd> elements, anything at all. The question boils down to knowing how to use ASP.NET and ADO.NET in general. If you don't know that, you need to learn it all, which is not extremely hard if you know general .NET programming.
—SA


这篇关于我想在不使用gridview的情况下显示数据库中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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