Solved

How to develop cascading dropdown in mvc 2.0

Posted on 2011-03-07
6
1,088 Views
Last Modified: 2013-11-19
i want to make a cascading dropdown in mvc 2.0 frame work.i would like to take dropdown like as state and city.
once i choose state the city dropdown is fill accordingly,without post back of page.I would like to choose the data from the database
as state table and city table.Could you please help me to provide the code.
0
Comment
Question by:nicemanish
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
jmcmunn earned 500 total points
ID: 35121397

Basically, you'll want to catch the change event on the first dropdownlist and fire off a call to a JsonResult returning action in your controller most likely.  That method will return the datasource for the second dropdownlist.

You should read the discussion here:
http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_26509661.html

Which will lead you to looking at the MVC music store example...
http://www.asp.net/mvc/tutorials/mvc-music-store-part-4
0
 

Author Comment

by:nicemanish
ID: 35277310
well i did not get the proper solution
0
 
LVL 12

Expert Comment

by:jmcmunn
ID: 35278248
We're not here to write your web app...did you have more specific questions?
0
 

Author Closing Comment

by:nicemanish
ID: 35485484
good
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question