Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. 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 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
  #1 (permalink)  
Old February 26th, 2007, 11:46 PM
Registered User
 
Join Date: Feb 2007
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic Dropdown

Hi,
Again, for my ASP Project...i need this...now its dropdown based on the selected options.....

There will be 2 select options (dropdown)
1. Country
2. States

In the first Dropdown i have the field Country (data received from database) & when the users selects the country the corresponding Dropdown states (this is also from the database)
should be displayed.

For E.G.

Country - displays - INDIA, JAPAN, USA, UK & if the user selects INDIA
States - should display - TN, AP, MP, UP.

Could you help me with the coding plz.

Regards,
BullsB

  #2 (permalink)  
Old February 26th, 2007, 11:53 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Unless you want a post back to the server you will have to use javascript to accomplish this.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html

Discussion:
http://p2p.wrox.com/topic.asp?TOPIC_ID=56429
  #3 (permalink)  
Old February 27th, 2007, 01:11 AM
Registered User
 
Join Date: Feb 2007
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah! i want to send the info to server & then get back.....I have done the same with JavaScript...but, the user should be given an option . . . . .to enter countries & states & for this i have a separate page.

So, i should get the data from the database...Thanks

  #4 (permalink)  
Old March 9th, 2007, 07:42 AM
Authorized User
 
Join Date: Jan 2007
Location: , , India.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saurabhj Send a message via Yahoo to saurabhj
Default

www.codeproject.com/jscript/dynaframe.asp

visit this...

-Saurabh
  #5 (permalink)  
Old March 9th, 2007, 07:42 AM
Authorized User
 
Join Date: Jan 2007
Location: , , India.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to saurabhj Send a message via Yahoo to saurabhj
Default

You can also use Ajax to do this

-Saurabh


Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit in Place with Dynamic Dropdown neojakey Ajax 1 September 28th, 2008 11:01 PM
Two Level Dynamic DropDown Question workib ASP.NET 3.5 Basics 6 May 14th, 2008 09:18 PM
Javascript Dynamic dropdown Menu itHighway Javascript How-To 0 July 24th, 2005 10:53 PM
dynamic dropdown boxes fmh002 Classic ASP Basics 1 June 26th, 2003 08:35 PM





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