Ниже приведен код из моего edit.cshtml
Мне нужно скрыть по полю SubClient_ID
, если значение в Group_Rollup_Flag
равно Да, и показать, когда Group_Rollup_Flag
равно нулю.
Как мне это сделать?Как бы я написал if
заявление для этого?
<div>
<div class="form-group col-xs-4">
@Html.LabelFor(model => model.MasterClient_ID, htmlAttributes: new { @class = "control-label col-md-2 required-label" })
<div class="col-md-10">
@Html.DropDownList("MasterClient_ID", null, htmlAttributes: new { @class = "form-control input-block-level" })
@Html.ValidationMessageFor(model => model.MasterClient_ID, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group col-xs-4">
@Html.LabelFor(model => model.SubClient_ID, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.DropDownList("SubClient_ID", null, "--Select--", htmlAttributes: new { @class = "form-control input-block-level" })
@Html.ValidationMessageFor(model => model.SubClient_ID, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group col-xs-4">
@Html.LabelFor(model => model.RebateClient_ID, htmlAttributes: new { @class = "control-label col-md-2 required-label" })
<div class="col-md-10">
@Html.DropDownList("RebateClient_ID", null, "--Select--", htmlAttributes: new { @class = "form-control input-block-level" })
@Html.ValidationMessageFor(model => model.RebateClient_ID, "", new { @class = "text-danger" })
</div>
</div>
</div>