Add a row to an HTML table

  • Thread starter Thread starter Tim Cowan
  • Start date Start date
T

Tim Cowan

Hi

How do I add a row to an HTML table at run time? I have a table with an ID
and the rows that I want to add under also have ID's(<TR id="397">)

Can someone help?

Thanks

Tim Cowan
 
Do you want to add the rows from the server or client.

If you want to do it on the server, then you will need to specify
runat="server" and add the variables to the code behind that will be bound
to those tags.

Once ASP.NET associates the variables with the tags, then you should be able
to use the methods and properties in the HtmlTable class.
 
Back
Top