470,613 Members | 1,844 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,613 developers. It's quick & easy.

HTML table from ASP.NET

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

Nov 21 '05 #1
2 1109
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
"Sehboo" wrote:
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

Nov 21 '05 #2
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?

Deepak wrote:
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
"Sehboo" wrote:
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


Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by SteveJ | last post: by
10 posts views Thread by Peter Kirk | last post: by
5 posts views Thread by Andrew | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.