ASP 101 - Active Server Pages 101 - Web01
The Place ASP Developers Go!

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash

ASP.NET version of "Dynamic Form Fields"

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.

Here's a zip file of the code (1.6 KB).

Play with the running version.

View the live source code.

Back to the "Dynamic Form Fields" sample


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers