Difference between executing source code written in publish and debug
I have written a class whose job is to return the maximum and minimum value of any data typeThis class works fine when debugging the project, but when we publish and run it and enter the part where we...
View ArticleI keep getting a HTTP 404 error when trying to go to a Razor page
I'm working on a new Blazor app. This is the first Blazor app I've worked on since taking a Blazor course. I've added some razor pages as well. One of the pages never is found and always raises a HTTP...
View ArticleBlazor SSR (no interactivity), how do you display a 'loading' message while...
I use NuGet package BlazorPageScript, so I have access to onLoad() and onUpdate() javascript functions.
View ArticleAccessing method in a C# Blazor Dynamic Component
I am building a Proof of Concept application using Blazor and have managed to get a lot of the proof of concept completed.I am using 3 bespoke components. 2 are "normal" razor page components that get...
View ArticleBlazor WebAssembly Standalone: Failed to load resource: the server responded...
I created a Blazor WebAssembly standalone application by choosing the appropriate template in VS 2022 Community, targeting .NET 8.0. And I didn't change anything in it. I just wanted to try to host it...
View ArticleBlazorWebAssembly - CultureInfo.DefaultThreadCurrentCulture changes in Chrome...
I have a BlazorWebAssembly application where I'd like to implement multilinguality. I created the .resx files. In my Program.cs I addedbuilder.Services.AddLocalization();When the user is loaded or the...
View ArticleBlazor button on click event handeling not working
I have a strange problem in my blazor sample.When i click a button in my component nothing happes... i have no clue why and hope someone can help me.LoginView.razor@page "/loginMvvm";@using...
View ArticleBlazor Server Singleton Observer Pattern Holding References After Page Refresh
I'm using a singleton service in a Blazor Server app to notify components when an order changes. The service follows an observer pattern, where pages register event handlers that get triggered when an...
View ArticleHow to set base path for a Mud Blazor App
I have created a very simple mud blazor app but for some odd reason the base path is not being respected. This is my program.csvar builder = WebApplication.CreateBuilder(args);// Add MudBlazor...
View ArticleBlazor server app keeps SignalR connection open
I'm creating a server based Blazor app in .NET 9.The app contains a client side check if users are inactive for a certain time.When they are, I want to stop the connection and display a logout...
View ArticleIncorrect visibleindex in context menu of Blazor DX Grid
I developed a context menu in Blazor with DevExpress to make a copy of selected record. For doing that I followed the DevExpress instructions:videocode in githubThe example has only the standard menu...
View ArticleFormatting text string in Blazor DialogService pop-up
I have some code like this, in the razor view there is only <DxDialogProvider/> and no other markup related to this.I for the life of me cannot get this dialog to format text with \n or HTML. I...
View ArticleDebug Outlook Web addin created in Blazor WASM
I'm creating an Outlook Web Addin. Implementation is done in Blazor WASM. The addin is working, well, but I'm not able to debug the addin when it is loaded in Outlook or neither in the browser. It is a...
View ArticleASP.NET Core 7 Blazor theme identity
I added the identity to the ASP.NET Core 7 Blazor app. But for the Identity pages, how do you use the out-of-the-box Blazor theme?I want it to be the same style as the "Hello world!" page, but it is...
View ArticleSignalR Subscription Not Working In Containerized Blazor WASM App on NginX
I am building a Blazor Web Assembly app that uses SignalR that reaches out to a hub that lives in a docker container. When I run Blazor locally everything works fine, even when the hub is in the...
View Article.NET Core Blazor App: How to pass data between pages?
I just started learning how to make websites with using Blazor template. But I don't know how to pass the data from one page to another. It is a bit different than .NET CORE MVC web application and I...
View ArticleHow to pass an object from one page component to another page component in a...
I have a .NET Blazor Server app and need to pass an object from one component to another. Both components are pages, meaning that they have @page directives with routes. I know how to use cascading...
View ArticleHow to Debug Razor Class Library Modules Loaded at Runtime in Blazor WASM
I'm building a modular Blazor WebAssembly application where separate Razor Class Libraries "modules" are loaded as plugins at runtime. These modules are not referenced by the main Blazor WebAssembly...
View ArticleExperience using Blazor server for public internet solution
I plan to use a Blazor Server application for customer access over the Internet.I'm asking about your experiences using Blazor for something like this.Do you have such solutions in production use ?What...
View ArticleBlazor with EditForm doesn't work with component
I have a .NET 9 Blazor project that contains a server and a client. In the client project, I have many forms. Those forms have many repetitive sections and some repetitive questions. For example, there...
View Article