From aebc77ab4c8ba14280c1431efa0e04d06555cce3 Mon Sep 17 00:00:00 2001 From: Mark J Price Date: Thu, 8 Jun 2023 11:59:33 +0100 Subject: [PATCH] Add validation scripts --- .../Northwind.Mvc/Views/Home/AddCustomer.cshtml | 12 ++++++++++-- .../Northwind.Mvc/Views/Home/AddCustomer.cshtml | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/vs4win/PracticalApps/Northwind.Mvc/Views/Home/AddCustomer.cshtml b/vs4win/PracticalApps/Northwind.Mvc/Views/Home/AddCustomer.cshtml index dba8014..8d89079 100644 --- a/vs4win/PracticalApps/Northwind.Mvc/Views/Home/AddCustomer.cshtml +++ b/vs4win/PracticalApps/Northwind.Mvc/Views/Home/AddCustomer.cshtml @@ -14,10 +14,12 @@
Customer ID must be five (5) upper case characters.
+
+
@@ -50,10 +52,16 @@
- Cancel and return to Customers -
+
+ +@section Scripts { + @{ + await Html.RenderPartialAsync("_ValidationScriptsPartial"); + } +} diff --git a/vscode/PracticalApps/Northwind.Mvc/Views/Home/AddCustomer.cshtml b/vscode/PracticalApps/Northwind.Mvc/Views/Home/AddCustomer.cshtml index dba8014..8d89079 100644 --- a/vscode/PracticalApps/Northwind.Mvc/Views/Home/AddCustomer.cshtml +++ b/vscode/PracticalApps/Northwind.Mvc/Views/Home/AddCustomer.cshtml @@ -14,10 +14,12 @@
Customer ID must be five (5) upper case characters.
+
+
@@ -50,10 +52,16 @@
- Cancel and return to Customers -
+
+ +@section Scripts { + @{ + await Html.RenderPartialAsync("_ValidationScriptsPartial"); + } +}