Few months ago I've been seeing many users in the forum asking how to generate dynamic textbox on the form and save the values to the database on Button click, so I've decided to write this post and wrap up all the examples that I wrote before on how to accomplish the task using different controls so that when I encounter such or similar questions again in the forum, I can simply refer them to this post.
Here are those examples:
Using ASP Table:
FAQ: Dynamically Adding Rows in ASP Table on Button Click event
Dynamically Adding TextBox Control to ASPNET Table
Using GridView:
Insert Values from Dynamic Columns to Database
Adding Dynamic Rows in ASP.Net GridView Control with TextBoxes
For Deleting of rows you can refer here: http://geekswithblogs.net/dotNETvinz/archive/2009/08/12/updated-adding-dynamic-rows-in-asp.net-gridview-control-with-textboxes-again.aspx
For Saving the dynamic data to database you can refer here:
http://www.aspsnippets.com/post/2009/08/16/Save-and-Retrieve-Dynamic-TextBox-values-in-GridView-to-SQL-Server-Database.aspx
Hope you will find this post useful!