Dynamic table - Need help!
-
Hi all, I'm building a website for a friend and am at the design stage. I would like to have a table with a row and 5 columns; an add link placed above the table. I would like each cell to contain a type of web object (of my design) such as a text box (0,1); a drop down list (0,3) etc. When the user clicks the add link, a second row with the same objects appear below the first row; whilst the data persists in the first row. I'm not expecting code, but I would appreciate some help in understanding how I can accomplish this. Thanks Humble@!
-
Hi all, I'm building a website for a friend and am at the design stage. I would like to have a table with a row and 5 columns; an add link placed above the table. I would like each cell to contain a type of web object (of my design) such as a text box (0,1); a drop down list (0,3) etc. When the user clicks the add link, a second row with the same objects appear below the first row; whilst the data persists in the first row. I'm not expecting code, but I would appreciate some help in understanding how I can accomplish this. Thanks Humble@!
If you are using ASP.NET, then look at the GridView control. Your 'add row' would be placed in the footer along with a command button to submit the new data back for processing. There are a number of tutorials on the web describing the technique, just search google for "GridView add new row" or something like that. Here's one example: http://geekswithblogs.net/casualjim/articles/51360.aspx[^]
Mark's blog: developMENTALmadness.blogspot.com