Sheritlw
asked on
Dynamically copy and create html table
Hi
I have a small table within a CollapsiblePanelExtender. It has two dropdowns and a few textboxes.
When a user clicks a button, I would like to copy this table and controls and then place the copy underneath the current table.
How would I do this?
Thanks
I have a small table within a CollapsiblePanelExtender. It has two dropdowns and a few textboxes.
When a user clicks a button, I would like to copy this table and controls and then place the copy underneath the current table.
How would I do this?
Thanks
Please explain in detail. What do you mean by "copy"?
Beside copying the content the question is how would you use the new section as if you want to post the data the controls will have to have different id's for the dropdowns and comboboxes.
So I think the solution is not to 'copy' the content but to manually construct it using html code and new controls.
Here's an example on how to add controls to a panel:
https://www.experts-exchange.com/questions/22765581/asp-panel-and-adding-text.html
So I think the solution is not to 'copy' the content but to manually construct it using html code and new controls.
Here's an example on how to add controls to a panel:
https://www.experts-exchange.com/questions/22765581/asp-panel-and-adding-text.html
ASKER
Since I have given up on the gridview and users will only add 1-4 records, I created a table with the fields I need and thought I would copy the format etc from the existing table and append a number ie. id = txtDescribe & "1"
I'm sure I can figure out how to recreate the table, but how do I place it below the other table?
The table is in a panel, so there should be a way to add the table below the one being copied.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That is a good idea
Thanks
Thanks