Free templates
Menu Search Free templates

Form with a dynamic number of rows (C#, VB and ASP.NET) | Free code

Here you can download free code (C# and VB) to create a form as an ASP.NET table with a dynamic number of rows, new rows are added with a click on a button.

There may be a need to create a form with a dynamic number of rows when it should be possible to add multiple lines simultaneously into a database without having to know in advance how many rows to be added at any given moment. A form with a dynamic number of rows means that there is no upper limit to the number of rows that can be added to the form.

A form with a dynamic number of rows should preferably retain the number of new rows added and the data in these added rows even when there has been a Postback in the web form (click on a button).

In this template with free code (C# and VB) for a form with a dynamic number of lines have we chosen to save the number of added rows in a Session variable and to re-create added rows in the "Page_Init" event. "Page_Init" is an event that occurs before the viewstate is restored, the "Page_Load" event occurs after the viewstate has been restored.

Remember that you in your web hosting account must have made a setting for the correct version of "ASP.NET" on your website (the version listed in the "Web.config" file). We are using Visual Web Developer 2005 (2010) Express Edition for web programming.
Updated: 01/01/2015 | Created by All-templates.biz

Download Form with a dynamic number of rows (C#, VB and ASP.NET) | Free code ยป

Tags: data input