473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 3761
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.