Solved

How to develop cascading dropdown in mvc 2.0

Posted on 2011-03-07
6
1,066 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What about 192.168.1.0/28 3 42
how to build a intranet site 8 36
keyword rich ebay title, description 2 33
URGENT - Wordpress site missing  theme 9 40
Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

813 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

18 Experts available now in Live!

Get 1:1 Help Now