Html.DropDownListFor

@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

posted @   秋意了了  阅读(615)  评论(0)    收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示