在MVC4

时间:2016-04-18 07:45:22

标签: asp.net-mvc-4 razor

@Html.DropDownList("CType",new List<SelectListItem> {  
new SelectListItem{Text = "All",Value = "0"},
new SelectListItem{Text = "Outgoing",Value ="Outgoing"},
new SelectListItem{Text = "Incoming", Value  ="Incoming"},
}, new { @class = "form-control input-md"})

如果我选择第二个值,我想在多个请求中保留选定的下拉值

0 个答案:

没有答案