当前位置: 动力学知识库 > 问答 > 编程问答 >

VB.NET input collected SQL result data into ASP.NET table

问题描述:

If you have collected some SQL data results using an ExecuteReader() command in VB.Net, what is the best of method of taking this data and displaying it in a table on a webpage?

Doing some experimenting, there seems to be numerous ways to achieve the results however I'm wondering: what is the best way of displaying the information?

I'm creating a standard table with four columns, I don't want the table to display more than thirty results.

网友答案:

Create a Gridview and bind the its datasource to your datatable you fetched with the ExecuteReader command you mention. Also, in the Gridview properties set Allowpaging = true and Pagesize = 30.

分享给朋友:
您可能感兴趣的文章:
随机阅读: