Wednesday, August 10, 2011

4th parameter denotes the selected item on a drop down list

@Html.DropDownListFor(m => m.SelectedCategoryId, new SelectList(Model.AllCategories, "Id", "Name", Model.SelectedCategoryId))

No comments:

Post a Comment