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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically Add / Remove HTML table Row Server Side

Status
Not open for further replies.

mjm917

Programmer
Mar 30, 2007
5
US
I am working on a project where I need to dynamically add & remove table rows serverside. I amd new to Asp.net and would appreciate any help / guidance as I did not come up with anything when I searched the forum or web.

I have done this before using javascript but my client doesn't want it done that way. He said he preferred to have everything done serverside.

From what I did find I need to beware of the viewstate and rebuild the controls with each postback. Correct?

MJM
 
From what I did find I need to beware of the viewstate and rebuild the controls with each postback. Correct?

Assuming you're creating a HtmlTable in code, yes. Add it to the page in the Page_Init event.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top