The fastest way to display results from a table in .NET 2.0 / 3.5

I have a database table (sql server 2008) for which I want to view data, what is the fastest way to display this data?

(if he had a paging that would be perfect).

Will it be gridview or?

query: select * from testData p>

+3
source share
5 answers

if you are using .NET 3.5, you can use dynamic ASP.NET data:

http://www.asp.net/dynamicdata/

Hope this helps!

+3
source

through ADO.NET get your data in a DataSet or DataTable.

then

gridview.DataSource = yourDataTable;
gridview.DataBind();
+2
source

-, gridview - ... , db ...

: : , .

+1

LinqToSql .

0

Gridview would be the perfect solution

you can only swap and sort using the AllowPaging = "true" PageSize = "##" AllowSorting = "true" properties, and if you want all the data, not just specific rows, you could just do AutoGenerateColumns = " truth"

0
source

Source: https://habr.com/ru/post/1699482/


All Articles