472,799 Members | 1,526 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,799 software developers and data experts.

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 3731
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Viorel | last post by:
Adding new row with default values. In order to insert programmatically a new row into a database table, without direct "INSERT INTO" SQL statement, I use the well-known DataTable.NewRow,...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
5
by: Patrick | last post by:
Hello I have the following problem. I have an aspx Page. This page contains an ASP-Table Object. So in that table, I have a linkbutton. So, I can't edit the event of that button trough the...
1
by: Andrew | last post by:
Hey all, I am very new to ASP.Net (and .Net in general), but that isn't stopping the boss from wanting to begin new projects in it. This latest project has me kinda stumped and after a couple...
0
by: Sileesh | last post by:
Hi I have html table and a Button in an Aspx page. I am adding one row with some textboxes to Html table each time i click on the Button thru Javascript. Now problem is when when i try to...
0
by: Luis Esteban Valencia | last post by:
Hello I wrote a program with code behind in C# to add row into table dynamically and the program worked very well in .Net Framework 1.1. When I run this program in .Net Framework 2.0 beta...
4
by: bubbles | last post by:
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?
2
by: Muzzy | last post by:
Hi, I've used information on these newsgroups to build many pages. So I thought that now that I have my script working (something that I've been working on for about a week), I should post it so...
1
by: DH | last post by:
I have an untyped dataset with a table. I am trying to programmatically add a row to this table. This was working in VS 2003 / .net 1.1 I am receiving an error "Object reference not set to an...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.