Solved

How to develop cascading dropdown in mvc 2.0

Posted on 2011-03-07
6
1,052 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
  • 2
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
jmcmunn earned 500 total points
Comment Utility

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
Comment Utility
well i did not get the proper solution
0
 
LVL 12

Expert Comment

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

Author Closing Comment

by:nicemanish
Comment Utility
good
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now