Html.DropDownListFor

时间:2014-06-20 17:48:23   收藏:0   阅读:371
@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

原文:http://www.cnblogs.com/dotnetmvc/p/3796493.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!