Datatables.net and integration with ASP.Net
Datatables.net and integration with ASP.Net
tarnett
Posts: 8Questions: 4Answers: 0
Hi folks,
Has anyone ever used datatables in an ASP.NET (c#) environment? I'm using Visual Studio 2015 with a SQL Server 2012 backend.
What methods are used to load the datatable.net grid?
Thanks guys!
This discussion has been closed.
Answers
WebAPI is the method I tend to prefer myself for Ajax loaded data, but you could easily just generate a standard HTML table and use DataTables on that.
Allan
Allan, thanks for the reply.
I have an ASP.Net page with a MicroSoft gridview control. Is there anyway I can use datatables in place of the gridview? How would I load the datatable data?
Any examples floating around on the forum?
Thanks!
Probably but I don't use GridView myself so I don't know what its output is. You could do a search to see if anyone else has written about this.
Allan
I'm sorry - I guess I'm not asking the right question.
If I use DataTables for my table display in my ASP.Net page, what would be my data source? I'm using ADO.Net to retrieve data from a SQL Server database.
How would I associate the datatable with my result set from my query?
Two options:
table
and let DataTables read it from the DOMSee the data manual pages.
Allan