HTML table from ASP.NET

  • Thread starter Thread starter Sehboo
  • Start date Start date
S

Sehboo

I have an ASP.NET page which has bunch of stuff. In the middle
somewhere (in a table), I want to add rows of records from database.
So when user clicks on this button, I want to go read the data from
database and then add rows to this HTML table.

How can I do that?

Thanks
 
First make the table to run at server.
Then get the data in a datareader .Iterate through the datareader and add
the rows and columns to that table in the button_click procedure.
Thanks
Deepak
 
I guess I wasn't clear enough.

Page already has been built using HTML tables/images. Then we made
this an ASP.NET page, and added one button in it. Once user clicks
this button, we want to read records from database and show data in one
of the tables on the page.

Can I access an HTML table from ASP.NET code behind?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top