.NET 8 Blazor form processing with action to Razor Components Page with static SSR #56445
Closed
1 task done
Labels
area-blazor
Includes: Blazor, Razor Components
feature-blazor-ssr
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
investigate
Status: Resolved
Milestone
Is there an existing issue for this?
Describe the bug
I have Login.razor page(
@page "/login"
) with InteractiveServer Render Mode. There is a<form>
on this page withmethod="post"
,@formname="uniqueFormName"
andaction="login/submit"
(@page "login/submit"
with Static SSR mode). On submitting this form I get an error on page login/submit.Expected Behavior
Login.razor page with InteractiveServer Render Mode(cause I need some interactivity on this page), and LoginSubmit.razor page with static SSR to process a post request from form on login page.
Steps To Reproduce
Login.razor
LoginSubmit.razor
App.razor
Exceptions (if any)
The POST request does not specify which form is being submitted. To fix this, ensure <form> elements have a @formname attribute with any unique value, or pass a FormName parameter if using <EditForm>.
.NET Version
8.0.302
Anything else?
No response
The text was updated successfully, but these errors were encountered: