i have a model :
public class person
{
public int id{get;set;}
public string name{get;set;}
}
how can i make a drop down list, from list of person in mvc3 razor by this syntax : @Html.DropDownListFor(…) ?
what type must be my persons list?
sorry I’m new in mvc3
thanks all
then in the controller
your view should look like this