StateHasChanged/this.StateHasChanged doesn't seem to have effect on Blazor...
I am working on a .net5 Blazor WebApp using the MudBlazor library.I'm trying to create a nav menu that displays certain categories and category pages. But as there is the possibility to add new...
View ArticleBlazor dynamic form has field name issue
Consider the following code which is just a demo to show the problem I'm facing:@page "/login"@using System.ComponentModel.DataAnnotations<EditForm Model="MyModel" FormName="LoginForm"...
View ArticleSimple BLAZOR app causing error with DOCKER
I have a created a very, very simple BLAZOR app for testing purposes. Its Visual Studio 2022 with .Net9.0. With ADD> "Docker support" I let Visual Studio 2022 create the DOCKER file. When I try to...
View ArticleHow to get more exception details in ASP.Net Core?
I'm getting this exception when running my Blazor server-side app in IIS and on mobile:[ExceptionHandlerMiddleware] An unhandled exception has occurred while executing the...
View ArticleAccessToken is null when using OpenIdConnect
I have a Blazor server-side app and in Startup.cs I have the following:services.AddSingleton<ITicketStore,...
View ArticleCommunication Issue Between API and WebAssembly on Azure Due to Extra Cookies
I am trying to implement an API and a WebAssembly in .NET Core on Azure. However, after deployment, I noticed that the communication between both stopped working.Upon investigation, I found that there...
View ArticleBlazor - Change UI CultureInfo at runtime
I need to change cultures at runtime according to resource files for each culture.ExpectedUser clicks a button that switches from current language to the other language. The texts in the page are...
View ArticleBlazor Web App (Server) EntraID authentication and downstream Api
I'm building a Blazor Web App (.NET 8) using Server interactivity and authenticating users via Microsoft Entra ID. Authentication works — I see the user is logged in, and their claims (oid, tid, etc.)...
View ArticleRendering blazor component to a string, render mode not supported
I'm trying to get html from RadarChart(chartjs.blazor) componentvar html = await blazorRenderer.RenderComponent<RadarChart>();but I keep getting exception:Cannot supply a component of type...
View ArticleBlazor render fragment starting with expression
Is it possible to start a render fragment with an expression block? For example is it possible to write the Blazor render fragment below without the outer tags?@{ RenderFragment<MyClass>...
View ArticleC# Blazor Server - StateHasChanged() is not refreshing current component...
It's exactly as the title says.The StateHasChanged() method has no effect, and I cannot progress because of it.private async Task Refresh(){ await base.InvokeAsync(this.StateHasChanged);}The...
View ArticleBlazor WASM Prerendering Crashes with Client-Only Services
I’m building a .NET 8 Blazor WebAssembly app with prerendering (InteractiveWebAssembly). When navigating via links, everything works fine. But if I manually enter a URL (e.g., /login), the server...
View ArticleToo many different lifetimes when using OpenId and Cookie authentication
So I have a Blazor server-side app that authenticates with a provider to get the access and refresh tokens. The authentication ticket is stored in a SQL Server database based on a distributed cache...
View ArticleHow to show loading progress while wasm part being loaded (.NET 8, no...
In Blazor WASM standalone app it is easy, because there is dedicated element for that:<div id="app">Loading...</div>And it gets replaced once the the app is loaded.In Blazor on .NET 8 it is...
View ArticleBlazor component isolated css with tailwind/postcss
Is it possible to use tailwind and postcss syntax for blazor component isolated css?I really like Tailwind as a CSS framework specifically its use of postcss and the @apply functionality where you can...
View ArticleBlazor Interactive Server on .NET 9 : InputRadioGroup rerender the page and...
I need to show different components based on a radio selection so I'm using InputRadioGroup like described here.When either of the options is selected, the page rerenders, the correct component is...
View ArticleDetecting Scroll in Blazor and Reacting to Scroll Position
I am using Blazor and need to detect when the user scrolls the page... (if possiable i rather do this without JS but I dont see anyway)for refecence I am trying to create similar menu effect:...
View ArticleCant import scoped Javascript in Blazor Standalone WebAssembly
In the past I have already done this in InteractiveServer Blazor, which is to import {page}.razor.js in my razor page through IJSRuntime in the OnAfterRender step of the page lifecycle. as...
View Articlebind:after is not firing after selecting an option in Blazor WASM app
I have a simple select in my Blazor WASM Standalone app (targeting .NET 9) and I want to perform some action after user selects an option. I understand for async calls, Microsoft now recommends using...
View ArticleQuickGrid + Docker: Failed to fetch QuickGrid.razor.js
I have a Blazor dotnet project that depends on the NuGet package QuickGrid v9.0.1. When I run my project in the browser, I see it is able to fetchhttp://localhost:5157/_framework/blazor.web.js and...
View Article