我怎样才能使这项工作
@using (Html.BeginForm())
{
@Html.ValidationSummary()
<p>MYep @Html.DropDownListFor(x => x.Id, new int {
new SelectListItem() {Text = "asdad", Value = "1"},
new SelectListItem() {Text = "dfgdgd", Value = "2"},
new SelectListItem() {Text = "werwrwt", Value = "3"}, "Choose")
<input type="submit" value="Ok" />
}
或者我应该在之前制作一个 IEnumerable 列表并将其提供给 dropdownlistfor?