11.1.4.6 Adding Model Validation; Listing 11-14. Adding Validation Messages to the Edit.cshtml File

This commit is contained in:
Jason Zhu 2021-09-23 19:29:36 +10:00
parent 1e70fef3a7
commit f5fb773395

View File

@ -30,6 +30,7 @@
@Html.TextBox(property.PropertyName, null,
new { @class = "form-control" })
}
@Html.ValidationMessage(property.PropertyName)
</div>
}
}