NavigationManager.NavigateTo() in Blazor web app?
I cannot get NavigationManager.NavigateTo(“/servers”) to work in my project. The /servers endpoint is valid with a @page “/servers”. I’ve tried everything and cannot get it to work. I get an Exception of type ‘Microsoft.AspNetCore.Components.NavigationException’ was thrown.
Blazor connect with delay in server side
I use blazor .net 9 web application my main page is static render for seo and indexing and one of my component is interactive server.
How to call a method before the EventCallback gets executed
My Blazor server application has many pages and many EventCallback
s like onclick
, onkeypress
, etc. I want to call a method before all these EventCallbacks get executed.
Blazor Server side application oauth redirect
I am using a blazor server side application to get an access token to have that page call an API. it uses oauth for authorization code flow
Why can’t Blazor see the JS function in a separate file?
I have created a new .js
file and connected it to App.razor
. But I got issue when tried to call a function in this file:
Why can’t Blazor see the JS function in a separate file?
I have created a new .js
file and connected it to App.razor
. But I got issue when tried to call a function in this file:
Why is Blazor can’t see JS function in separate file?
I have created new .js
file and connected it on App.razor
. But I got issue when tried to call a function in this file that tells next:
Why is Blazor can’t see JS function in separate file?
I have created new .js
file and connected it on App.razor
. But I got issue when tried to call a function in this file that tells next:
How can my Blazor method tell if the page it’s running on has been navigated away from?
I’ve got a Blazor page where the user can start a long-running (~10 minute) process that downloads multiple files from a vendor’s API, combines them into a zip archive, and downloads the zip archive to the user’s computer. Currently, if the user navigates away from the page, the process continues running but I need it to stop.
How can I automatically sign-in a user after they set their password in a Blazor interactive SSR page?
We have a Blazor (8) Interactive Server site. It is using cookies auth and was built using the standard blazor templates. I have an interactive Set Password page, which successfully creates the user (from a button click in a form); that user can then be used to log in from the static login page. We would like to be able to log the user in automatically as soon as the user is created, which is a problem in an interactive page because we don’t have access to the HttpContext
that the SignInManager
uses, and the form doesn’t POST in the usual way because it’s using a SignalR connection to interactively create the user. How can I get around this? I can see the following options: