Andre Silveira

Andre Silveira

  • 1.6k
  • 155
  • 15.6k

.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)