You should do like this:
@Html.DropDownListFor(m => m.ContribType,
new SelectList(Model.ContribTypeOptions,
"ContribId", "Value"))
Where:
m => m.ContribType
is a property where the result value will be.
More Related Contents:
- Populating a razor dropdownlist from a List in MVC
- Disable Required validation attribute under certain circumstances
- MVC Razor view nested foreach’s model
- The type or namespace name does not exist in the namespace ‘System.Web.Mvc’
- Display only date and no time
- Convert arabic”unicode” content html or xml to pdf using itextsharp
- Passing object in RedirectToAction
- Non-static method requires a target
- Overriding SaveChanges and setting ModifiedDate, but how do I set ModifiedBy?
- POST json dictionary
- ASP.NET MVC 3: Override “name” attribute with TextBoxFor
- Multiple fields validation using Remote Validation
- How to use custom Authorize attribute for roles as well as a specific user?
- ASP.NET MVC 3: DefaultModelBinder with inheritance/polymorphism
- @Html.HiddenFor does not work on Lists in ASP.NET MVC
- onchange event for html.dropdownlist
- Google Maps v3 geocoding server-side
- How to declare a local variable in Razor?
- MVC 3: How to render a view without its layout page when loaded via ajax?
- Better way to get active page link in MVC 3 Razor
- How do I get the Controller and Action names from the Referrer Uri?
- MVC HTML Helpers and Lambda Expressions
- on select change event – Html.DropDownListFor
- How to edit multiple models in a single Razor View
- Uploading image in ASP.NET MVC
- The ObjectContext instance has been disposed and can no longer be used for operations that require a connection [duplicate]
- System.Data.MetadataException: Unable to load the specified metadata resource
- Multiple Models in a Single View (C# MVC3)
- Output cache per User
- MVC Form Validation on Multiple Fields