?
Solved

How to develop cascading dropdown in mvc 2.0

Posted on 2011-03-07
6
Medium Priority
?
1,102 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 1500 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

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

719 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