Why doesn't NavigationManager.Uri seem to update itself on .NavigateTo(string)?
If I do the following:@page "/mypage"@inject NavigationManager NavigationManager<button @onclick="ts">nav to a random fragment</button>@code{ private void ts() {...
View Articleabp blazor disposed object of type SocketsHttpHandler is disposed
When I open my abp v7.1 blazor app in the browser and login. I can use the app perfectly for a couple of minutes after that I always get an error stating the app is trying to access a disposed object....
View ArticleUse authentication with cookies instead of losing login on page refresh
I am working on an internal tool (MudBlazor, C# .NET 8) that displays data from a database. The application uses authentication, managed by a CustomAuthStateProvider, which allows users to log in and...
View Article.net 8 Blazor WebApp (WebAssembly & Server) + IdentityServicer
Does anyone have a working template?I tried to pin down such a configuration myself, but couldn't.I kept getting a 401 unauthorized when sending an HTTP request from Client to a secure endpoint on Server.
View ArticleHow to render options for MudSelect?
I'm learning to use MudBlazor, and I'm starting with a simple MudSelect element like so:<MudSelect Label="Select..." @bind-Value="_selectedFruitCode"> @foreach(var fruitCode in fruitCodes) {...
View ArticleMudblazor: Login dialog shows no controls
I want to build a server-side website with Mudblazor and C# .NET9. I need help displaying a dialog. The goal is to be able to log in. So you enter your username and password in the dialog and these two...
View Article.NET 8 Blazor web app (web assembly & server) + IdentityServicer
Does anyone have a working template? I tried to pin down such a configuration myself, but couldn't.I keep getting an http 401 "unauthorized" error when sending a HTTP request from the client to a...
View ArticleBlazor server app closes without error during debugging
The application started in debug mode stops reacting unexpectedly, without errors being intercepted and/or exceptions being generated.I don't know if this behavior can also happen when starting in...
View ArticleBlazor Custom Authentication State based on Roles using Claims Identity
I am using CustomAuthentication in order to validate weather a user has access to view a certain pageAt the moment my page is able to be restricted based on@attribute[Authorize]aloneBut I want to be...
View ArticleHow to inherite from MudDebouncedInput and overwrite DebounceInterval
I'm using Blazor with MudBlazor.I'm using the MudTextField very often and have also some validations in some places.Now i would like to create a new component which inherits from the MudTextField...
View ArticleDinkToPdf doesn't display RadarChart from Chart.js
I'm trying to export html that look's something like this<!DOCTYPE html><html><head>...<script...
View ArticleFail to publish photino blazor application to linux x64 with visual studio 2022
I tried build my first photino blazor application to Linux.I download the sample code from official github and want publish to Linux and try run.https://github.com/tryphotino/photino.BlazorBut I found...
View ArticleBlazor StateHasChanged() Not Updating Child Components
I have a Service that contains a catalog of items. The items depends on the Service's active company.// Tell Service to refresh in context of Company 1await Service.SetActiveCompany(1);// Get Catalog...
View ArticleHow to add controller (not view) support to a server-side Blazor project
While my server-side Blazor app is running, I want some Javascript code in _Host.cshtml to be able to post data to a controller action. Of course, this happens completely outside of the scope of, and...
View ArticleBalzor server .net 7 css @media @page isolation
One componentPrint.razor @page "/print"<h1>landscape</h1>Print.razor.css @media print { @page { size: landscape; } }Other component Print2.razor @page...
View ArticleHow to set Blazor Web App UI to use static port?
In .Net 9, If you create a Blazor Web App, in development, the user interface always start on a dynamic port.I'd like to always start on a statically defined port.I've updated launchSettings.json to do...
View ArticleBlazor Server .NET 8 authorization Dependency Injection User Settings
I have a IUserSettings interface to use between Blazor and a Desktop. I have a task in the interface called Task GetUserSettingsAsync(AuthenticationStateProvider authenticationStateProvider). Once the...
View ArticleonChange event not firing Blazor InputSelect
I have the following Code for an InputSelect <InputSelect class="form-control form-control form-control-sm" placeholder="Role" disabled="@IsReadOnly" @bind-Value="Model.Role"...
View ArticleBlazor root level Cascading Value doesn't propagate fresh value after change
I have this in Program.cs. My intent is that when userSession.OnIdentityChangedAsync has been fired (the user is allowed to impersonate an identity) the cascading value of ActingIdentity is then...
View ArticleBlazor Server: Unable to access ProtectedSessionStorage value from...
I'm developing a Blazor Server application that calls an external API. After successful login, I store the JWT token in ProtectedSessionStorage. While I can retrieve the token fine in Razor components,...
View Article