@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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-05-20
  • 2021-06-03
  • 2021-09-07
猜你喜欢
  • 2021-09-06
  • 2021-08-09
  • 2021-09-07
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案