Relative Content

Tag Archive for blazorblazor-server-side.net-8.0

Blazor .NET 8 – How to disable submit button in EditForm when NOT using InteractiveServer rendermode?

I am new to Blazor and creating a login form for user authorization. I am using Custom authentication using my user database. I have learnt that I cannot use InteractiveServer rendermode on the login page as I need to use the HttpContext.SignInAsync method to register the claim.
Having done that, I’m unable to figure out how do I disable to login button or show a loader once the button is clicked until I get the authentication done?

Prevent OnValidSubmit when task already running

Ive got a Blazor/.NET8 webapp and I am struggling with a user registration Component. The issue is that I cant seem to create a way to conditionally either prevent the task from running nor disable the button from subsequent clicks.