0
私はC#MVC3プロジェクトを持っており、HTML.CheckBoxForの実装に問題があります。私はここで、以下のエラーMVC3 HTML.CheckBoxForエラー
Cannot implicitly convert type 'string' to 'bool'
を取得していますコードです:
@{
List<Domain.LookupCostReductions> costReductions = ViewBag.CostReductions;
foreach (Domain.LookupCostReductions cr in costReductions)
{
@: <td style="border:0 ;vertical-align: top; ">
@Html.CheckBoxFor(x => x.CostReduction, cr.Description)
@cr.Description
@:</td>
}
}
任意のアイデア?
@ Jared ...ありがとう – MikeTWebb