Andre Silveira

Andre Silveira

  • 2k
  • 66
  • 886

.Net core 5 MVC Nullable bool field and checkbox

Aug 2 2021 8:49 PM

How do I force the mvc to render my nullable bool fields with a checkbox? How do I control the views?

When I put type="checkbox" it returns an error (cannot convert type bool? to bool).

Thanks in advance

Answers (2)