@Html.LabelFor(model => model.ServiceTypeCode)</td>
@Html.DropDownList("ServiceTypeId", new SelectList(ViewBag.ListServiceTypeClass, "ServiceTypeId", "ServiceTypeCode", Model.ServiceTypeId), "")
can anyone know how to do this.
If ServiceTypeCode = 'A1SG43'
{
@Html.EditorFor(model => model.StatutoryMaintenance)
}
else
{
@Html.EditorFor(model => model.CalloutDate)
}
How to achieve this please.