Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 15th, 2018, 10: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!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 06:04 AM
Selected value from dropdown menu wont display. mizjinx Classic ASP Databases 0 May 20th, 2007 09:24 PM
Passing an Array from Classic ASP to Oracle Greg Griffiths Oracle ASP 0 June 29th, 2004 12:15 PM
Title: dropdown list as selected according to the san_only ASP.NET 1.x and 2.0 Application Design 1 June 4th, 2003 02:55 AM



All times are GMT -4. The time now is 12:34 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.