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

Please visit our partners


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
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash




Script Output:
Name:
Gender: Male Female
Favorite Color:
Agree to Terms:

Note: The point of this sample is to illustrate repopulating the form fields with the values the user enters. As such, regardless of the values entered, the form will not actually do anything when submitted. This is intentional. To change this behavior, please read the comments included in the source code.


ASP HTML Download            FAQ

Persisting form values in classic ASP may be a pain, but sometimes it needs to be done. Luckily for you, we've got a sample that shows you how.

The sample is pretty straightforward... at the top of the page it reads in the value of each form element and stores it in a local variable. Later on, if the form needs to be shown again, it uses the values of these variables to set the default value of each form element. While it can be a little cumbersome, it's really not as hard as it sounds. Take a look at the code and you'll get the hang of it in no time.


Samples

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



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers