Here Mudassar Ahmed Khan has explained with an example, how to bind data from Database in HTML Table in ASP.Net using C# and VB.Net.
The data from the SQL Server database will be fetched into a DataTable. Then a loop will be executed over the DataTable rows and an HTML Table string is generated and displayed using Literal control in ASP.Net using C# and VB.Net.
↧