This is an ASP.NET version of our classic dynamic form fields sample.
This script shows you how to generate a number of form fields dynamically based
on user input and then read back the values the user enters into those dynamically
generated fields.
In addition to the primary goal of programmatically creating and
adding server controls to a web form dynamically, this script also
illustrates a number of other cool .NET concepts including: using an
ArrayList to populate a DropDownList, building a string using a
StringBuilder, and hiding sections of a page using the Panel web
control.
For more information you might want to see the description of the
classic ASP version, since this version is based on that code.