TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
raja ramesh
NA
50
108.4k
Dropdownlist in asp.net mvc3
Dec 27 2011 6:25 AM
Hi,
I am working on asp.net mvc3 using ado.net asynchronous concept
I have written country dropdown as following
<select name="" class="styled" id="countryDropDown">
@foreach(var country in HttpContext.Current.Cache.Get("Countries") as List<Country>)
{
<option value="@country.Id" >@country.Name</option>
}
</select>
I have another two dropdownlists- statedropdown and citydropdown
I want to fill statedropdown based on countryId
I want to fill citydropdown based on stateId
My state controle action
public ActionResult GetStatesCompleted(IList<StateProvince> states)
{
//Up to here I am getting states list, what I have to write here for return states to view
}
Can you anyone tell me how to write controle and view to do this
Thankyou for advance...
Reply
Answers (
4
)
IN SSRS reports displaying image salary base .
C# Public symbols downloading