In .NET 8, how does 'Enhanced Form Handling' allow a Blazor SSR page to feel like a SPA without requiring full interactivity?
Last updated
Enable it with
data-enhanceon a plain<form>orEnhanceon anEditForm.The post is sent via
fetchand the server binds, validates and re-renders. Only changed DOM is patched in, so messages and values appear without a reload.No circuit or WebAssembly is needed: a small script does intercept-and-patch while the component stays statically server-rendered.
- https://www.telerik.com/blogs/blazor-enhanced-navigation-fully-explained
- https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/navigation?view=aspnetcore-10.0
- https://www.telerik.com/blogs/blazor-basics-exploring-blazor-enhanced-navigation
- https://learn.microsoft.com/en-us/aspnet/core/blazor/forms/?view=aspnetcore-10.0
- https://www.youtube.com/watch?v=UkSBN1Lsxr0
- https://github.com/dotnet/aspnetcore/issues/54250
- https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-8.0?view=aspnetcore-10.0
- https://learn.microsoft.com/en-us/aspnet/core/blazor/?view=aspnetcore-10.0