Disable Refresh Page When Post Form In Blazor

Mahdi Elahi 31 Reputation points
2024-01-09T04:10:42.8566667+00:00

Hi,
I use web App blazor , in my form when i click on submit button the form is post to server and then refreshed page 
for example : in login form when the input  is not valid , i click on submit it's refresh page then show validation message field 

i want disable reload page in blazor 
how to do it ?

notice :

when i change render mode to interactiveServer it's Ok
but in renderModes Auto & WebAssembly is page is refreshed
 

why ? how to solve it ?

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.