Html.DropDownListFor

时间:2014-06-20 17:48:00   收藏:0   阅读:219
@Html.DropDownListFor(x => x.WillAttend, new[] {
                        new SelectListItem() {Text = "Yes, I‘ll be there",
                        Value = bool.TrueString},
                        new SelectListItem() {Text = "No, I can‘t come",
                        Value = bool.FalseString}
                        }, "Choose an option")

bool.FalseString

Html.DropDownListFor,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!