Last post Feb 07, 2020 02:36 PM by mgebhard
Feb 06, 2020 06:49 PM|3v3rhart|LINK
I moved the code for bool properties from previous ASP.net version to new Core project.
I notice in the create view, the bool properties no longer automatically take on yes / no / empty pull down menus. They look like string properties.
Does Core support bool properties?
Do I need to code them differently in the create views?
Feb 06, 2020 10:22 PM|DA924|LINK
Of course it does.
Maybe, you need to show some code.
Feb 07, 2020 02:29 PM|3v3rhart|LINK
<label asp-for="DocumentForm" class="control-label"></label>
<input asp-for="DocumentForm" class="form-control" />
<span asp-validation-for="DocumentForm" class="text-danger"></span>
Feb 07, 2020 02:36 PM|mgebhard|LINK
Tag helpers are very different from Web Forms Server Controls. Tag helps simply do not work the same way.
Are you receiving an error or unexpected results? Is there anyway you can provide sample code that illustrates the problem you are experiencing?