Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 15th, 2018, 09:20 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2018
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default classic asp passing dropdown selected value

Any help appreciated on this as I'm stuck at this point after many confusing hours. This is on a complex classic asp page and I'd rather keep the changes minimal. I've had to add a drop down filter box at the top of the page, further down a recordset loops to load records. I'm looping here to load the filter items into a dictionary, but I have two serious issues.

1. how to get the value selected out of the dropdown selector and
2. how to pass it as a parameter back to the same page

I'm using the action=pagename in the form below, but I've tried with and without this to no effect. The page is not reloading at this point, and when it occasionally did there was no parameter passed in chrome - but IE got the parameter (this is not also not working).

<form action="emplist_mainten.asp" method="get">
<Select id="FilterDepartment" name="FilterDepartment" onchange="self.location=self.location+'?FilterDepa rtment='+FilterDepartment.options[FilterDepartment.selectedIndex].text;>

<% dim i,a,s
a=DeptDict.Items
For i = 0 To DeptDict.Count -1 %>
<option value="<%= (a(i)) %>"> <%= (a(i)) %></option>
<% Next %>
</Select>
</form>

Thanks for any suggestions!




Similar Threads
Thread Thread Starter Forum Replies Last Post
displaying dropdown selected value other fields jtnchang ASP.NET 3.5 Basics 15 January 22nd, 2010 04:33 PM
How to highlight selected dropdown values. sheetm J2EE 0 June 5th, 2007 05:04 AM
Selected value from dropdown menu wont display. mizjinx Classic ASP Databases 0 May 20th, 2007 08:24 PM
Passing an Array from Classic ASP to Oracle Greg Griffiths Oracle ASP 0 June 29th, 2004 11:15 AM
Title: dropdown list as selected according to the san_only ASP.NET 1.x and 2.0 Application Design 1 June 4th, 2003 01:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.