4,806 questions
0
votes
0
answers
16
views
Blazor WASM MSAL: Redirect to admin page after token expiration with localStorage credentials
I'm using Blazor WebAssembly with MSAL for authentication and storing Azure AD B2C credentials in localStorage. My setup is roughly like this:
builder.Services.AddMsalAuthentication(options =&...
0
votes
1
answer
48
views
Why are my context menus for the Client, Site and Division not displaying
As mentioned in the subject line why are my context menus for the Client, Site and Division not displaying when running the code shown below! I've only includes the relevant sections below:
<div @...
0
votes
0
answers
25
views
Add InteractiveServer page to InteractiveAuto webapp
I have created a Blazor webapp which was created using Auto interactivity (and individual authentication). Working to add to the webapp I have understood that InteractiveAuto means using ...
0
votes
0
answers
46
views
Z.Blazor.Diagrams nodes and links not rendering correctly
Could someone please help me with this. I have looked all over the internet for different examples. I have tried a few different Blazor templates. No matter what I have tried I can't seem to get the ...
Best practices
1
vote
2
replies
82
views
How to handle errors in Blazor WebAssembly?
I have been using this ServiceResponse model to communicate data between an Azure Function backend and a Blazor WebAssembly frontend:
public class ServiceResponse<T>
{
public T? Data { get; ...
0
votes
1
answer
71
views
How can I send my refresh tokens via httponly cookie to standalone blazor WebAssembly?
I've been trying for a couple days to implement refresh tokens into my ASP.NET Core Web API, but to no avail.
I've currently got an ASP.NET Core Web API that allows someone to log in with a username ...
2
votes
1
answer
70
views
Conditionally rendering HTML in Blazor
If I use an if statement to render a block of HTML in a Blazor WebAssembly app, does it actually get rendered and not displayed if the condition is false?
Something like this:
@if(isSectionVisible)
{
...
-1
votes
3
answers
205
views
Avoiding null warnings in Blazor, default! or required per [Inject] service dependency injection
What is Microsoft's recommended approach to avoid compiler warnings about possible null values when injecting dependencies into Blazor components, What are the technical implications of initializing ...
0
votes
2
answers
130
views
HttpClient in Blazor WebAssembly Standalone
When I create a new Blazor WebAssembly Standalone project, it automatically adds an HttpClient in Program.cs -- see below:
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(...
0
votes
0
answers
54
views
Add a clickable calendar icon in the SfCalendar header without using pseudo-elements
I'm using Syncfusion Blazor SfCalendar in my project:
<SfCalendar TValue="DateTime?"
ID="add-appointment-date-picker"
Value="selectedDate"
...
-1
votes
2
answers
89
views
Web app freezes when trying to use Layout in a razor class library from that class library
In a Blazor 9 web app, I have a page in a razor class library and I can navigate to it fine from the main Blazor web app.
However, when I add a Layout component in that class library and try to use it,...
0
votes
1
answer
160
views
Why does my OnAfterRenderAsync get called 5 times when I call StateHasChanged 5 times
The Blazor docs say this:
If a component calls StateHasChanged five times in a row in a loop, the component only renders once.
Ref: https://learn.microsoft.com/en-us/aspnet/core/blazor/components/...
0
votes
0
answers
39
views
Global Error handler for Blazor hybrid render mode
I'm trying to understand if is possible to have one <ErrorBoundary> for my whole .NET 8 Blazor server application. The "rendermode" is not globally set to be "InteractiveServer&...
0
votes
1
answer
73
views
Blazor server call keeps returning log in page even after user is authenticated
Goal: simple Blazor app, in which, after the user has logged in and their authentication state is confirmed, I call the backend to load some user data.
Process: I launch the app locally from Visual ...
0
votes
0
answers
106
views
Blazor web app vs Blazor web assembly standalone App
I started learning C# a while ago with Tim Corey's course and while it is a bit outdated in Visual Studio version, I never had a problem similar to this.
I wrote a simple piece of code which takes a ...
1
vote
2
answers
99
views
Blazor WebAssembly not applying culture to DateTime formatting after changing culture
I recently migrated my Blazor project from Blazor Server to Blazor WebAssembly. In the Blazor Server version, when I changed the culture (e.g., CultureInfo.CurrentUICulture = new CultureInfo("fa-...
0
votes
1
answer
61
views
Using Blazor Web App with ASP.NET Zero Framework Instead of Angular or MVC
Is it possible (and recommended) to use Blazor as the front-end in ASP.NET Zero?
Has anyone successfully integrated Blazor web assembly with ASP.NET Zero backend, and if so, what approach did you take?...
2
votes
1
answer
146
views
MudBlazor Data Grid show index with arrow when persist data
I'm using MudBlazor's Data Grid and I'm implementing a method to save the search, sort, and pagination status. When you leave the page and return, the table displays the last search, sort, and ...
1
vote
1
answer
344
views
AADSTS500208 "domain is not a valid login domain" error when migrating Blazor WASM from Azure AD B2C to Entra External ID
Problem
We're migrating a Blazor WebAssembly application from Azure AD B2C to Entra External ID and encountering authentication issues. Users can't sign in or sign up, receiving the error:
ServerError:...
2
votes
0
answers
74
views
Blazor auth not always synchronizing
I have a Blazor web app, where I am using static SSR and wasm (but not interactive server).
I of course have a server project and a wasm project.
I have setup auth with Appwrite and written of own ...
0
votes
1
answer
63
views
Child component not updating property
So in the razor.cs there is a method that imports an xml and displays it in the child components. How it is rendered is shown in the .razor, but for some reason only the Models-property in the child ...
1
vote
1
answer
51
views
After input all the values still showing username and password required in Blazor webassembly
I'm working with a Blazor web assembly project, but having an issue while submitting form after inputting email and password still asking for email and password
Email is required
Password is required
...
0
votes
0
answers
53
views
Cannot debug Blazor WebAssembly applications when using docker compose orchestration in Visual Studio 2022
I cannot get the Blazor WebAssembly debugging to work when using Docker Compose orchestration in Visual Studio 2022
The reproduction is quite simple:
Create a sample app using the Blazor Web App ...
1
vote
1
answer
103
views
Azure Static Web App not recognizing staticwebapp.config.json in Blazor WASM app when deployed via Azure Pipelines
I have a standalone Blazor WASM app that I am trying to deploy to an Azure Static Web App resource via CI/CD.
My app deploys, but my navigationg fallback rules aren't working. I have a staticwebapp....
0
votes
0
answers
74
views
Conditional Validation Blazor Wasm
I have a Blazor Wasm app that I use with an ASP.Net Core API.
I have one page with a form that I use Blazors built in validation with (data annotations and so on).
However now I have added a new ...