Blazor Page Interactivity and Render Mode
I am new to .NET and currently working on building an app using clean architecture and Blazor components/pages. I have a solution with two projects: one for executing the app (Main) and the other for...
View Article.NET8 Auth - what should be the architecture for a real world usage?
I heard that for .NET8 Microsoft gifted us with a totally "fixed" authentication and authorisation setup.Now, when I create a Blazor application from the templates, it scaffolds out a whole bunch of...
View ArticleCan I use MetaMask as an asp.net RemoteAuthenticationHandler?
In the default Blazor web app template (with "Individual Accounts" authentication) there is a page in Components\Account\Pages\Manage\ExternalLogins.razor that has a page URL...
View ArticleStateHasChanged not updating correctly in Blazor Web App - How to use EF Core?
I have a blazor web app with a InteractiveServer rendermode. I have a edit page with a SignalR hub that must refresh the object when someone else has edited it. The following code is within my Razor...
View ArticleHow Do I Structure Central Database Access In Blazor MAUI Hybrid App
I'm porting a project from ASP.NET MVC to a Blazor MAUI Hybrid app with the intent to share common components and data. I have a Razor class library which does this, but was wondering if I should also...
View ArticleBlazor Injection of a helper class to other classes
this is using Blazor c#/html.im taking a helper class: public class HelperClass { public bool HelperClassBoolF { get; set; } public bool HelperClassBoolT { get; set; } public HelperClass() {...
View ArticleHow can I use additional icons in NavMenu in Blazor 8?
I want to use additional icons in the NavMenu.razor in my Blazor 8 application. In Blazor 7 there was a iconset configured in wwwroot/css/, and so I was able to use additional icons only with naming it...
View ArticleRendermodes for a page that populates components on the client side
This is what I used to have: when a page is loaded, a JSON is read from the <body>'s data attribute and then parsed via JavaScript to populate the elements (components).I want to create a Blazor...
View ArticleWeb View 2: navigation error connecting to Blazor server app
I've been using WV2 for a couple of years to connect customers to my site.Recently I've been getting navigation failure 500 errors with Status code "Unknown" in my CoreWebView2_NavigationCompleted...
View ArticleUnit test subdivs with bUnit
I am trying to test a blazor component. In the logic of the component i set some text in an subdiv somewhere inside the component. Now i want to verify that the text is set...
View ArticleBlazor restarts session when getting access token
I have a Blazor (SSR) app that makes a call to another service on behalf of the logged in user. To get the bearer token I callawait...
View ArticleWhy does my Entra MSAL flow work for log in, but I get a 404 when logging out?
I am having a strange issue. I am using MSAL 2 with an Entra Customer tenant, and users can log in, but cannot log out.Here's my sample configuration, which I had to change from the original...
View ArticleBlazor Server (.NET 8) Multiple Layouts (CSS/JS)
As I understand it, the new Blazor (.NET 8) web project uses App.razor component with the HTML markup and is the root component that is loaded first during app load.The Routes.razor component then sets...
View ArticleUserManager.GetClaimsAsync() failing - The connection is closed
In a Blazor InteractiveServer application, using the ASP.NET Identity Library, I call:Microsoft.AspNetCore.Identity.UserManager`1.GetClaimsAsync(TUser user)And it throws (full stack trace...
View ArticleAuthentication with Azure Functions as a backend API and frontend client at...
I want to know can I add app registration (my backend-api) from my b2c azure tenant to my 'default'/main tenant where my published Azure Functions are.I have added my backend-client id and my issuer...
View ArticlePDF's won't load unless they are under 512KB after stored in SQL Server...
Trying to create a Blazor application with the MudBlazor framework that allows pdfs to be uploaded to an SQL database. This is a Server side application.I have a model called Pdfs, using...
View ArticleDependency injection in Blazor does not work while switching page
I have a classpublic class SessionState { public int id { get; set; } public bool verified { get; set; }}And in every page I have injected the class with @inject SessionState state.I want to fill...
View ArticleIssue with Setting User Role in Identity with Blazor Client App
I'm using AddOidcAuthentication for user login in the client App of my Blazor application. After successful login, I'm attempting to fetch data and set the user role in the identity. However, I'm...
View ArticleBlazor ContentEditable data binding
I know that Blazor does not support data-binding for contenteditable div. What I have working is the following that allows text to be written and accessed through onInput.<div role="textbox"...
View ArticleSciChart's Waterfall chart with .NET Blazor wrapper
I'm trying to add this beautiful Waterfall chart SciChart has with this wrapper:https://github.com/NRTDP/SciChartBlazorBut it looks like there is a problem with rendering 2d surfaces.I've created a...
View Article