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

Menu/List box coding

Status
Not open for further replies.

tomhughes

Vendor
Joined
Aug 8, 2001
Messages
233
Location
US
Does anyone know how to write code to get a value from a Menu/List box, and cause an event to occur depending on that value. How do I refer to a Menu/List box in code.
The Form it is in is called "decal" and the name of the Menu/List box is "select1". The name of the Value in the box is "D".
 
Hi Tom,

If it's a conditional thing then if you are using a unique name for your menu/list you can incorporate that into your code. ie
<%
If Request.form(&quot;select1&quot;) =&quot;D&quot; Then
Response.redirect &quot;anotherpage.asp&quot;
Else
Response.write &quot;select something for God's sake&quot;
End If
%>

Or something along those lines, you see how it can be done, go forth and tinker!

[thumbsup]

M &quot;There are 3 kinds of people; those that can count and those that can't&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top