ASP 101 - Active Server Pages 101 - Web04
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





Script Output:

Pick a salesman to see the details of one of their sales:


ASP HTML Download            FAQ

ASP.NET Version

Often when you're asking a user to fill out a form, some of their options will change based on other things they're inputting. This sample takes the input from the first select box and uses it to query a database to fill in the second.

Note: There is no real sales data (for these fictitious salesmen) beyond the stuff I added for the second select box used in this sample!

This is a sample of building the form... not building a report. I've left out the querying that this form would probably do if it was being used in the real world. As a result, selecting something from the second select box and re-submitting the form doesn't do anything unless you've changed your selection from the first box.

It's pretty straight forward so that's about all I'll say. As always you'll find some comments in the code so if you get lost give them a read. You can download a copy of the sample database (Access 2000) if you want to play with the script on your own machine.


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