Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add Dynamically Created HTMLTable

Status
Not open for further replies.

Signit

MIS
Oct 17, 2003
114
US
I've created an object of HTMLTable. I am dynamically adding rows w/ cells to the table. I would now like to place this HTMLTable object on my page. In what way do I do this? Any thoughts would be most appreciated.
 
Assumptions, more detail: You mention "page" and HTML, so I assume you're coding an ASP.NET page? If so, then you can use the JavaScript DOM and the "innerHTML" property to write any HTML into a block-level element, such as a DIV tag.

If you want to do it the "ASP.NET" way, then start with a PlaceHolder object on the WebForm. Then, use its "Add" method to replace it with your Table.



Thomas D. Greer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top