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



Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
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


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

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