我认为我有以下代码
<td>@Html.DropDownListFor(e => e[0].Reason, new List<SelectListItem>
(
new[]
{
new SelectListItem { Text = " -Select- ", Value = "-Select-" },
new SelectListItem { Text = " Price ", Value = "Price" },
new SelectListItem { Text = " 3P ", Value = "3P" },
new SelectListItem { Text = " Freight Collect ", Value = "Freight Collect" },
new SelectListItem { Text = " Billing ", Value = "Billing" },
new SelectListItem { Text = " Business Closure ", Value = "Business Closure" },
new SelectListItem { Text = " Customer Service ", Value = "Customer Service" },
new SelectListItem { Text = " Quality ", Value = "Quality" },
new SelectListItem { Text = " Service ", Value = "Service" },
new SelectListItem { Text = " Business Relocate ", Value = "Business Relocate" },
new SelectListItem { Text = " Change in Relationships ", Value = "Change in Relationships" },
new SelectListItem { Text = " Different Account Code ", Value = "Different Account Code" },
new SelectListItem { Text = " Economic Downturn ", Value = "Economic Downturn" },
new SelectListItem { Text = " BIC ", Value = "BIC" },
new SelectListItem { Text = " Credit/Collections ", Value = "Credit/Collections" }
}
))</td>
每次页面加载时选定的值都会发生变化
你能告诉我如何设置选定的值。
提前致谢。