[thelist] passing data to an asp page

Ken Schaefer ken at adOpenStatic.com
Tue Dec 9 00:58:10 CST 2003

There are a number of ways you can do this.

a) You can use some client-side javascript to set where the form submits to
depending on what the user selects from the drop-down list.

b) You can have the form submit to a set ASP page, and then use
server.execute or server.transfer in that page to run the desired page
(depending on what the user has selected)

c) You can have the form submit to a set ASP page, then use
Response.Redirect, to redirect the user to the appropriate page, however you
need some way persist the posted form data (eg by placing it in the


Microsoft MVP - Windows Server (IIS)

From: "John Mitchell" <John at persol.net>
Subject: [thelist] passing data to an asp page

Please, I want to collect details from a form that a user fills in.
When the user fills in the form, depending on the value the user will
select from the menu box in the form, a corresponding page will be
loaded. Example: if the user selects HEALTH, a page called health.asp
will be loaded but the rest of the details already filled in (like,
name, address, etc) will be displayed on health.asp as well as
health.asp's own contents.

I have written couple of scripts to do this but there are just not

More information about the thelist mailing list