Top "Dropdownlistfor" questions

Returns an HTML select element for each property in the object that is represented by the specified expression.

How to use a ViewBag to create a dropdownlist?

Controller: public ActionResult Filter() { ViewBag.Accounts = BusinessLayer.AccountManager.Instance.getUserAccounts(HttpContext.User.Identity.Name); return View(); } View: <td>…

asp.net-mvc viewbag dropdownlistfor
Value cannot be null. Parameter name: items (DrodownList)

I'm working with ASP.NET MVC4 and now I want to add a dropdownlist with data from my mysql database. …

asp.net asp.net-mvc view controller dropdownlistfor
What is the best ways to bind @Html.DropDownListFor in ASP.NET MVC5?

I want to bind @Html.DropDownListFor from Model data without using Viewbag and look at many different examples on the …

asp.net-mvc razor html.dropdownlistfor selectlist dropdownlistfor
MVC 4 - populate dropdownlistfor with model list

I am trying to populate a dropdownlistfor in my view and I don't know the correct lambda expression for it …

list asp.net-mvc-4 lambda dropdownlistfor
better way to load 2 dropdown in mvc

This is how i am loading on page load state and city dropdown: My Controller method: This is the first …

c# asp.net-mvc dropdownlistfor
Java Swing drop down list

I have created a drop down list using JAVA Swing. When I select "Keep track of status of RCM:", I …

java swing jcombobox itemlistener dropdownlistfor
MVC4 DropDownListFor Object reference not set to an instance of an object

I'm about to go mad trying to figure this out. I'm newer to MVC but have become pretty comfortable with …

asp.net-mvc asp.net-mvc-4 html.dropdownlistfor dropdownlistfor
ASP .NET MVC - DropDownList OnChange

I want to hide some data when I select a value in my dropdownList. Example : When I choose Gender = M, …

asp.net-mvc dom-events onchange dropdownlistfor
@Html.DropDownListFor; How to set different background color for each item in DDL?

I have a dropdown list (@html.DropDownListFor) wherein I am showing name of colors... I want to display each item …

asp.net-mvc-4 dropdownlistfor