How to host blazor webassembly app with different base path
I have a Blazor Webassembly, .NET hosted application. On the server we host it on, the base path of the app will be mydomain.com/coolapp. Therefore, to try to get the app to render correctly on the...
View ArticleBlazor .net 8 new interactive project structure fails to connect to debug...
I recently started to play around with new Blazor project structure to see if we can move our front-end projects to .net 8. The problem is, I'm not able to connect to chromium debug adapter.I want to...
View Article.NET MAUI Blazor Virtualize Component - UI Instability with Shrinking and...
I am working on a .NET MAUI Blazor app and using the Virtualize component to display a grid and list view. I am encountering issues where the UI becomes unstable, shrinking, and jumping, especially...
View ArticleI need to convert my Blazor SSR app to Blazor WebAssembly app
I Have created a new .Net Aspire Starter app which created a default Blazor Static server app for me. And now I need to convert it to Blazor WebAssembly without breaking the Aspire connection. How can...
View ArticleBlazor chrome extension invoke C# method in BackgroundWorker.js
The idea is to implement custom file chooser.At simple BlazorBrowserExtension i'm trying to call a c# method marked with the [JSInvokable] from BackgroundWorker.js extension file.According to...
View ArticleHow could I improve getting a List based on the state of a checkbox?
I have 6x checkboxes, which represent filters and are booleans. These filters type are represented by an enum. I need to get a List depending on the state of the checkboxes and I'm trying to do it the...
View ArticleHow I can ensure that my async method properly returns into main UI thread?
I've got a Razor Component running on Blazor WASM. It sends an asynchronous request to the IoT device to get data type of some node. If it isn't the same as the stored one, I'll ask the user to update...
View ArticleBlazor Looping, Closures and Binding
I broke this down to a simple example of Looping through some stuff but breaking it out in levels. I'm instantiating a local copy in the inner loop but that doesn't seem to work.When you try and change...
View ArticleBlazor .Net Core 8: How to use Server Side Component on the Client side?
I want to use the InteractiveAuto feature of WASM. So I want to create my pages on the client side.But I also want to access server side components that have access to my SQL database.It seems though...
View ArticleMongoDB .NET Driver - Aliasing fields in the projection
How to add alias in .NET 8 Blazor C# to change the field name?var project = Builders<BsonDocument>.Projection.Include("NameField").Include("_id")How can I change the name NameField to just...
View ArticleIssue with authentication in Blazor
I am working with Blazor authentication. I have implemented a way to authenticate a user through an API controller that signs in the user and returns the current state of the user with http...
View ArticleBlazor set attribute background-color in a grid cell at runtime
Problem is: I have a grid (smart htmlelements) and when I add a row I want to set the background colour of a cell in the row to a value supplied in the data row - so the cell colour varies between...
View ArticleBest way to download a file in radzen blazor [closed]
What would be the best approach to create a download button in radzen?I found some solutions for this in the internet, they work, but none of them seems good for me.One solution would be to create a...
View ArticleBlazor Wasm ASP.NET Core hosted app, with SAML2 authentication
I have a .NET Core 6 Blazor Wasm ASP.NET Core hosted, with a client (Wasm) project and server project (API).I need to implement a SAML2 authentication and I can't find official documentation about it...
View ArticleFrom where does Environment.GetEnvironmentVariable pick its value in nunit...
I was actually trying this code section in NUnit .using NUnit.Framework;namespace BlazorClientApp.Tests{ public class CounterTests { [Test] public void CounterComponent_ShouldHaveInitialCountZero() {...
View ArticleBlazor WASM download large (>2GB) file from WEB API
I'm stucked... I've read all of the threads about this and can't make it work and don't know why...I've a WEB API which should return a large zip file (>2GB), it creates the zip on disk, it's ok and...
View ArticleNeed Blazor Wasm Performance Improvement on CPU Intensive Calculations
I have a c# WinForms app that I have been converting to Blazor Wasm. It needs to perform a set cpu-intensive calculations (i.e. no IO or UI interaction) after most user inputs. The calculations entail...
View ArticleWhat is the error of this Blazor EditForm?
I tried to follow the instruction of creating form from youtube channel like those:https://www.youtube.com/watch?v=zfqQ_fhmPOQorhttps://www.youtube.com/watch?v=40njRXr6eUoor I even tried a very simple...
View ArticleSystem.Text.Json.JsonException: The input does not contain any JSON tokens
I'm just trying to use a Http POST method in a Blazor app throughpublic async Task CreateUnit(UnitEntity unit){ await _http.PostJsonAsync<UnitEntity>("api/units", unit);}_http and myObject have...
View ArticleVS2022 ignores new component added into the project
Using VS2022 v 17.10.4 When I add a new component into the project , VS ignores its existence. I have to close VS, delete the obj and the bin folders, reopen VS, clear and rebuild the solution and it...
View Article