Q:

asp.net displaying stored procedure results on HtmlTable from codebehind

what is the best way to dynamically create a table from codebehind, where data for it is retrieved from a stored procedure (SQL 2008)??
And will it make difference if I use HtmlTable instead of asp.net Table?
Appreciate the help!

A:

Since you mentioned you wanted it to be easy the GridView is the way to go. Yes you can use the html table but it will be more work. 
I wanted to mention another approach. You could make an html table with a repeater as well. I found a sample for you here:
ASP.NET Web Form Repeater
If you scroll down a bit you will see an example of a table.
This is also simple as you can bind to the repeater as Icarus showed but you also get a little bit more straightforward control of the html.

