Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reload page onClick for more options 2

Status
Not open for further replies.

topub

Programmer
Jun 6, 2006
42
US
Hi there,

I am looking for an example on how to implement this:

I have an ASP page with 4 multi-select list boxes. Only the first one is populated with some options.

When user selects one/many option(s) from the first box, second box is dynamically populated, then the next...

Is there a way to do this, or is there a better approach?
or should I learn AJAX for this?

any help is greatly apprecited,
_ub
 
This topic has been covered many times in this forum. A quick search should provide you with the answers you need to get started.

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
All the data populated in these multi-select list boxes is from a Database
thanks again,
_ub
 
I did search. But no results.

May be I didn't get the right key words...

thanks,
_Ub

 
You can try this old thread:
You might also try the FAQ section which has a FAQ that should directly help you. faq333-1498

Hope these help.

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
Thanks a lot for your tips Chopstik... I read the three articles in FAQS. While they did answer most of my questions, I still have a question that is not answered yet.

After collecting users input (a couple of selection & reloads), if the user clicks the "Submit" button, how do I get the results displayed on bottom of the same page.

In short how do I differenciate between user input (reload) and submit (reload)?

Any leads are greatly appreciated,
_ub
 
OK, suppose you have this button:[tt]
<input type="submit" name="btnSubmit" value="Submit Changes">[/tt]

If your form was submitted by clicking the button, then there will be a name/value pair for the button in the HTTP Request.

So you can do some ASP like this:[tt]
<%
IF Request.Form("btnSubmit") = "Submit Changes" THEN
'the submit button was clicked
ELSE
'the submit button was NOT clicked
END IF
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top