Razor中Html.DropDownListFor的使用

Razor中Html.DropDownListFor的使用

@Html.DropDownListFor(model => model.HttpMethod,
          new List<SelectListItem>() {
          new SelectListItem() { Value = "GET", Text = "GET" },
          new SelectListItem() { Value = "POST", Text = "POST" }
          })  

 

posted on 2016-12-20 17:13  jmlsaul  阅读(79)  评论(0)    收藏  举报