Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
|
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 July 30th, 2012, 11:37 AM
Authorized User
 
Join Date: Jul 2003
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Get selected value of dropdwon box using postback

Hi,
When an item in my drop down box is selected my onchange event fires and a vb function is supposed to display a msgbox containing the selected value of the box. I know this sounds simple but I can't get it to work. I'm using request.servervariables("SCRIPT_NAME") in the form tag. Can anyone see what I'm doing wrong?

<script language="vbscript">
<!--
function GetFSItem
msgbox lstFSItem.selectedindex.text
end function
-->
</script>





Similar Threads
Thread Thread Starter Forum Replies Last Post
combo box remain selected after submission RanjanD1 Classic ASP Professional 2 September 7th, 2007 07:56 AM
Persist user selected check box information Parinisasa C# 0 May 28th, 2007 01:37 PM
option selected from a select box Adam H-W Classic ASP Basics 3 December 11th, 2006 11:09 AM
selected item in dropdown not saved on postback rathbird ADO.NET 3 March 6th, 2006 08:44 AM
drop down box selected value crmpicco HTML Code Clinic 1 March 31st, 2005 09:56 AM





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