Last post Feb 07, 2020 02:36 PM by mgebhard
Member
361 Points
823 Posts
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?
or
Do I need to code them differently in the create views?
Contributor
4923 Points
4198 Posts
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
View
<div class="form-group"> <label asp-for="DocumentForm" class="control-label"></label> <input asp-for="DocumentForm" class="form-control" /> <span asp-validation-for="DocumentForm" class="text-danger"></span> </div>
All-Star
53001 Points
23587 Posts
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?
Member
361 Points
823 Posts
Core - bool
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?
or
Do I need to code them differently in the create views?
Contributor
4923 Points
4198 Posts
Re: Core - bool
Feb 06, 2020 10:22 PM|DA924|LINK
Does Core support bool properties?
Of course it does.
Maybe, you need to show some code.
Member
361 Points
823 Posts
Re: Core - bool
Feb 07, 2020 02:29 PM|3v3rhart|LINK
View
<div class="form-group">
<label asp-for="DocumentForm" class="control-label"></label>
<input asp-for="DocumentForm" class="form-control" />
<span asp-validation-for="DocumentForm" class="text-danger"></span>
</div>
All-Star
53001 Points
23587 Posts
Re: Core - bool
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?