diff --git a/Pages/Demos/Checkboxes.cshtml b/Pages/Demos/Checkboxes.cshtml
index c1a6df1..c0ed782 100644
--- a/Pages/Demos/Checkboxes.cshtml
+++ b/Pages/Demos/Checkboxes.cshtml
@@ -124,3 +124,9 @@
Reset
}
+@section Scripts {
+
+}
\ No newline at end of file
diff --git a/Pages/Demos/DisabledInputsNoWatch.cshtml b/Pages/Demos/DisabledInputsNoWatch.cshtml
new file mode 100644
index 0000000..e887ede
--- /dev/null
+++ b/Pages/Demos/DisabledInputsNoWatch.cshtml
@@ -0,0 +1,112 @@
+@page
+@model DemoWeb.Pages.Demos.DisabledInputsNoWatchPageModel
+
+@{
+ Layout = "Shared/_Layout";
+}
+
+
+
+
+
+
+
+@section Scripts {
+
+}
\ No newline at end of file
diff --git a/Pages/Demos/DisabledInputsNoWatch.cshtml.cs b/Pages/Demos/DisabledInputsNoWatch.cshtml.cs
new file mode 100644
index 0000000..b0e2cfd
--- /dev/null
+++ b/Pages/Demos/DisabledInputsNoWatch.cshtml.cs
@@ -0,0 +1,34 @@
+using System.ComponentModel.DataAnnotations;
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Mvc.RazorPages;
+
+namespace DemoWeb.Pages.Demos;
+
+public class DisabledInputsNoWatchPageModel : PageModel
+{
+ [TempData]
+ public string? StatusMessage { get; set; }
+
+ [BindProperty]
+ [Required]
+ public string? Value1 { get; set; }
+
+ [BindProperty]
+ [Required]
+ public string? Value2 { get; set; }
+
+ public bool IsChecked { get; set; }
+
+ [Remote("CheckboxRemote", "Validations", HttpMethod = "Post",
+ ErrorMessage = "Must match other checkbox.",
+ AdditionalFields = $"{nameof(IsChecked)}"
+ )]
+ public bool IsCheckedToo { get; set; }
+
+ public IActionResult OnPost()
+ {
+ StatusMessage = "Form was submitted to server. Any validation errors that may be present are due to server side validation, not client.";
+
+ return RedirectToPage();
+ }
+}
\ No newline at end of file
diff --git a/Pages/Demos/DisabledInputsWithWatch.cshtml b/Pages/Demos/DisabledInputsWithWatch.cshtml
new file mode 100644
index 0000000..315916a
--- /dev/null
+++ b/Pages/Demos/DisabledInputsWithWatch.cshtml
@@ -0,0 +1,104 @@
+@page
+@model DemoWeb.Pages.Demos.DisabledInputsWithWatchPageModel
+
+@{
+ Layout = "Shared/_Layout";
+}
+
+
+
+
+
+
+
+@section Scripts {
+
+}
\ No newline at end of file
diff --git a/Pages/Demos/DisabledInputsWithWatch.cshtml.cs b/Pages/Demos/DisabledInputsWithWatch.cshtml.cs
new file mode 100644
index 0000000..77c9f70
--- /dev/null
+++ b/Pages/Demos/DisabledInputsWithWatch.cshtml.cs
@@ -0,0 +1,34 @@
+using System.ComponentModel.DataAnnotations;
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Mvc.RazorPages;
+
+namespace DemoWeb.Pages.Demos;
+
+public class DisabledInputsWithWatchPageModel : PageModel
+{
+ [TempData]
+ public string? StatusMessage { get; set; }
+
+ [BindProperty]
+ [Required]
+ public string? Value1 { get; set; }
+
+ [BindProperty]
+ [Required]
+ public string? Value2 { get; set; }
+
+ public bool IsChecked { get; set; }
+
+ [Remote("CheckboxRemote", "Validations", HttpMethod = "Post",
+ ErrorMessage = "Must match other checkbox.",
+ AdditionalFields = $"{nameof(IsChecked)}"
+ )]
+ public bool IsCheckedToo { get; set; }
+
+ public IActionResult OnPost()
+ {
+ StatusMessage = "Form was submitted to server. Any validation errors that may be present are due to server side validation, not client.";
+
+ return RedirectToPage();
+ }
+}
\ No newline at end of file
diff --git a/Pages/Demos/FormAction.cshtml b/Pages/Demos/FormAction.cshtml
index 98846df..a411b24 100644
--- a/Pages/Demos/FormAction.cshtml
+++ b/Pages/Demos/FormAction.cshtml
@@ -17,4 +17,11 @@
-
\ No newline at end of file
+
+
+@section Scripts {
+
+}
diff --git a/Pages/Demos/RemovedInputs.cshtml b/Pages/Demos/RemovedInputs.cshtml
index 70d5a75..ad48e3c 100644
--- a/Pages/Demos/RemovedInputs.cshtml
+++ b/Pages/Demos/RemovedInputs.cshtml
@@ -8,31 +8,38 @@
\ No newline at end of file
+
+
+@section Scripts {
+
+}
\ No newline at end of file
diff --git a/Pages/Demos/SubmitButton.cshtml b/Pages/Demos/SubmitButton.cshtml
index bf5b6fa..ce4956e 100644
--- a/Pages/Demos/SubmitButton.cshtml
+++ b/Pages/Demos/SubmitButton.cshtml
@@ -6,39 +6,46 @@
}
\ No newline at end of file
+
+
+
+
+
+@section Scripts {
+
+}
\ No newline at end of file
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml
index 31996c7..a8d6477 100644
--- a/Pages/Index.cshtml
+++ b/Pages/Index.cshtml
@@ -11,6 +11,8 @@
Removed Inputs
Select Input and Validation Summary
Form Action
+ Disabled inputs ({watch: true}
)
+ Disabled inputs (no watch)
@if (Model.StatusMessage != null) {
diff --git a/Pages/Shared/_Layout.cshtml b/Pages/Shared/_Layout.cshtml
index b3abb18..6236ab6 100644
--- a/Pages/Shared/_Layout.cshtml
+++ b/Pages/Shared/_Layout.cshtml
@@ -10,10 +10,6 @@
@RenderBody()
-
@RenderSection("scripts", required: false)