Relative Content

Tag Archive for c#blazor

Blazor injecting into a DelegatingHandler

Within my blazor app i have a webassembly app and a web api app.
I have written a base for a DelegatingHandler within my webassembly to get my token from local storage and send it.
I will want to send the token and if the response is a unauthorized one then ill send a refresh token.
When i create my handler like this:

Issue with bind-Value, object failing to be created

I’m working on a Blazor application and I’m having trouble with my login form. The LoginModel object is always empty when it’s passed to my HandleLogin method, causing the login process to fail. Additionally, I’m encountering the following error:

Blazor UI not updating with StateHasChanged

I’m having difficult with getting my UI to automatically update, I’ve bound LifetimeService.Items to the table yet its not updating when I call InvokeAsync(StateHasChanged)

How to format a text in blazor

Hi guys I’m creating a new project in blazor and I’m trying to format a text before using in in my html, the way i’m trying to do it is by using a replace, my main problem is that i can add a break line