From f5fb773395bd68e6319c5e48ba065446f419495a Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Thu, 23 Sep 2021 19:29:36 +1000 Subject: [PATCH] =?UTF-8?q?11.1.4.6=20Adding=20Model=20Validation;=20Listi?= =?UTF-8?q?ng=2011-14.=C2=A0Adding=20Validation=20Messages=20to=20the=20Ed?= =?UTF-8?q?it.cshtml=20File?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SportsStore/SportsStore.WebUI/Views/Admin/Edit.cshtml | 1 + 1 file changed, 1 insertion(+) diff --git a/SportsStore/SportsStore.WebUI/Views/Admin/Edit.cshtml b/SportsStore/SportsStore.WebUI/Views/Admin/Edit.cshtml index 6d7c0f7..951f35b 100644 --- a/SportsStore/SportsStore.WebUI/Views/Admin/Edit.cshtml +++ b/SportsStore/SportsStore.WebUI/Views/Admin/Edit.cshtml @@ -30,6 +30,7 @@ @Html.TextBox(property.PropertyName, null, new { @class = "form-control" }) } + @Html.ValidationMessage(property.PropertyName) } }