470,602 Members | 1,728 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

adding rows to html table programmatically

i have a HTML file and it already has a HTML table and a few rows created by
default.. however, i would like to add more rows to this table
programmatically
may i know how?

Jul 21 '05 #1
3 3658
1) Use the asp:Table, asp:TableRow, and asp:TableColumn instead of the
standard HTML table tags.
2) Make the each run at the server.
3) Add the necessary protected variables in your code-behind so that the
tables are correctly associated with the variables.

Now you can use properties such as Rows and Columns to add the necessary
structure.
"bubbles" <bu*****@discussions.microsoft.com> wrote in message
news:4F**********************************@microsof t.com...
i have a HTML file and it already has a HTML table and a few rows created by default.. however, i would like to add more rows to this table
programmatically
may i know how?

Jul 21 '05 #2
Thanks for your reply.
However, the HTML table come in a form of a template.
Is it still possible to access this particular table and add rows to it
programtically?

thanks !
:)

"Peter Rilling" wrote:
1) Use the asp:Table, asp:TableRow, and asp:TableColumn instead of the
standard HTML table tags.
2) Make the each run at the server.
3) Add the necessary protected variables in your code-behind so that the
tables are correctly associated with the variables.

Now you can use properties such as Rows and Columns to add the necessary
structure.
"bubbles" <bu*****@discussions.microsoft.com> wrote in message
news:4F**********************************@microsof t.com...
i have a HTML file and it already has a HTML table and a few rows created

by
default.. however, i would like to add more rows to this table
programmatically
may i know how?


Jul 21 '05 #3
You can use the interfaces exposed by the WebBrowser control. And then
use the IHTMLTable object to manipulate the HTML table.

http://msdn.microsoft.com/workshop/b...webbrowser.asp
http://msdn.microsoft.com/library/en...mldomfromc.asp
http://msdn.microsoft.com/library/de...IHTMLTable.asp

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

bubbles wrote:
i have a HTML file and it already has a HTML table and a few rows created by
default.. however, i would like to add more rows to this table
programmatically
may i know how?

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Viorel | last post: by
3 posts views Thread by Jim Heavey | last post: by
reply views Thread by Luis Esteban Valencia | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.