2
Answers

.Net core 5 MVC Nullable bool field and checkbox

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)