From 2a469d738fef26f2ebe9d9855b9646b9fcad3bb4 Mon Sep 17 00:00:00 2001 From: Phil Haack Date: Fri, 5 Jan 2024 13:43:49 -0800 Subject: [PATCH] Add example with no formaction --- Pages/Demos/FormAction.cshtml | 1 + Pages/Demos/FormAction.cshtml.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Pages/Demos/FormAction.cshtml b/Pages/Demos/FormAction.cshtml index cb37f3f..98846df 100644 --- a/Pages/Demos/FormAction.cshtml +++ b/Pages/Demos/FormAction.cshtml @@ -16,4 +16,5 @@ + \ No newline at end of file diff --git a/Pages/Demos/FormAction.cshtml.cs b/Pages/Demos/FormAction.cshtml.cs index 49c72c6..f2dd104 100644 --- a/Pages/Demos/FormAction.cshtml.cs +++ b/Pages/Demos/FormAction.cshtml.cs @@ -35,7 +35,7 @@ public IActionResult OnPostSave() public IActionResult OnPost() { - StatusMessage = "This should not have been called"; + StatusMessage = "The button with no formaction was clicked"; return RedirectToPage(); }