Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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 March 31st, 2006, 02:21 AM
Registered User
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default dropdown menus OnClick Store To session variable,

its been a long day, lol

basicly i got 2 dropdown menus
both connected to a DB
1st for manufacture
2nd for modle

manufacture when page loads already has all car manufactures listen
what i need to do is
onclick save the clicked item into a session variable named sessmanufacture

i need just a quick example where to put the onlick im doing it in notepad pretty much if any one can help

this is what i have

<select name="manmenu" id="manmenu">
While (NOT getmanu.EOF)
            <option value="<%=(getmanu.Fields.Item("Manufactures").Val ue)%>">onClick=(Session("sessmanufacture")=Request .Form("manmenu") </option>
If (getmanu.CursorType > 0) Then
End If


but its not working also id like to know cuz ive been reading this asp book, a session variable would be the proper kind of variable for this information right? i mean application variables r harder to move to other pages, and are more of a pain.

but yea please gimmi a example on the onlick for a dynamic menu lol

thank you


Old March 31st, 2006, 03:38 PM
Friend of Wrox
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts

Your code is classic ASP. this is an ASP.NET 2.0 fourm. Are you using .NET?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird problem with dropdown onclick event in IE 7. tovipul21 Classic ASP Basics 1 September 7th, 2007 01:15 PM
Dynamic Menus - Using multiple dropdown boxes Sebastiaan ASP.NET 1.0 and 1.1 Basics 1 April 18th, 2007 06:25 AM
dropdown menus in datagrid? asimzeeshan Visual Basic 2005 Basics 1 September 9th, 2006 03:21 AM
Store Items from dropdown menu in mysql database scoobie PHP Databases 0 April 28th, 2005 08:17 AM
button onclick send session id sougataroy Classic ASP Databases 1 September 4th, 2003 03:46 PM

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