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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 radio, 2 select box - ADO

Status
Not open for further replies.

bipink

Programmer
Apr 15, 2004
14
US
Hi all,

Can any one suggest me how to accomplish this:

In page1.asp, I have 2 radio buttons in form1, one select box (size 1, to make it menu) in form2 and other select box (size 10) in form3.
Now, the user can click on either the radio buttons or select box (size 1). When they do so, I am calling again page1.asp in the action event of form1 and 2 resp.
I have to write diff. queries when the page reloads on clicking either of these and then populate my select box (size 10) in form3.
But the question is how does my page1.asp know which event (radio or select box (size 1)) caused it to reload ? Accord. to that I have to write query.
Thanks,

Sincerely,
Bipin
 
well only there are only three possible values for the set of radio buttons...both off, 1st on or 2nd on....

A simple if/then check will take care of that

if not request("radio1")="on" and not request("radio2")="on" then
some code
elseif request("radio1")="on" then
do something
elseif elseif request("radio2")="on" then
do soemthing else
end if


Bastien

Cat, the other other white meat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top