ASP Function

L

Larry R. Baker

I am trying to locate information on how to call a sub within VBScript on an
ASP page but I can't locate generic information. What I want to do is
generate a page that will stay up but the information on it will change
based on a series of drop down boxes. I need the first drop down box to call
a second dropped down box based on the state that is chosen then city and so
on.

Any help or link to information will be appreciated.

Thanks,

Larry Baker
 
T

TomB

ASP runs on the server, to do what you want would require submitting the
page and rebuilding.

You probably want to use Javascript to do it on the client.
 
K

Kris Eiben

All ASP code (anything in <% %> or <script runat="server"> tags) exists
only on the server, so it does not "see" when a user has changed
something on the page. In order for a change on the client to run ASP
code, you'll need to send something back to the server -- i.e. submit
the form. Or, you could load all possible values into Javascript and do
everything client-side. Do a Google search for "dependent list box" for
lots of examples of both methods.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,220
Latest member
AugustinaJ

Latest Threads

Top