Category "blazor"

DataSet Parent-Child Nested Relation in Blazor

Is DataSet Parent-Child nested relation available in blazor? if yes, how to apply or use it? Thanks.

Standalone Blazor WASM .Net6 Application with Azure Active Directory Authentication works locally, not when deployed to Azure Static App Service

I have been having this issue for days and have not been able to figure out what it is. In my Blazor WASM Standalone program I Handle Authentication with Azure

Blazor Server error aspnetcore-browser-refresh.js:234 WebSocket connection to 'wss://localhost:56871/' failed

Running a Blazor Server app is showing a partially rendered page with a browser console error of: aspnetcore-browser-refresh.js:234 WebSocket connection to 'wss

How to map fetched API data into JSON object for looping

I have the following working code that fetches a JSON data from Azure API: @code { string responseBody; protected override async Task OnInitializedAsync() {

How to use Form data received from a POST request in Blazor pages?

I have a Blazor page that can receive form-data from a POST request. After this data is received, it will be set to two properties and also rendered onto the pa

Blazor Webassembly Prerendering: How to avoid HeadContent render two times

I have a Blazor WASM prerendered .NET6 application. In Index.razor on the Hosted server project, I have a component that loads css files dynamically. The probl

How Blazor Server AOP logging?

I would like to implement and use an AOP logging in my Blazor Server .NET 5 (C# 9) application, for generic enter-exit-exception scenarios for the marked method

How to send data from Child to Parent component in Blazor (when a list is clicked)

I have a simple component like this: @foreach(book in store) { <li @click="@SelectBook(@book.id)"> @book.title <li> <!-- book.id throws error

blazor how pass list of some type to EditorAttribute

im building some generic forms builder so im at the point where i can public class Model { [Editor(typeof(CustomIntEditor), typeof(InputBase<>))] publ

Mudblazor clear TextField after "Enter"

I am using Mudblazor component TextField in my Blazor Server project. I want to clear the TextField after I press "Enter" Here is my code in my Index.Razor : @p

Blazor Repeatable EventCallback for Menu Item

I am working on a repeatable "Card" component that has a list of menu items and actions that this menu can take. However I cannot get the functionality to work

How do I tell or allow Blazor to "refresh" an HTML element from its bound value that hasn't changed?

When I have a one-way binding on a HTML element and accompanying binding on onchange that doesn't always change it, then how do I tell or allow Blazor to "refre

How to deal with IEnumerables/Arrays/Collections in Fluxor State?

I'm currently trying to implement Fluxor for my Blazor WASM app and all the instructions/tutorials I found recommended something like this example for the Store

Blazor, how can I change a component in MainLayout when I change page

I want to add a toolbar inside website, the toolbar change inside component on each page. For now, I have this but I want my toolbar to be like this. How could

When I add SCEditor to my Blazor project, the editor keeps appearing in strange places, sometimes in multiple copies. How do I fix this?

I want to use SCEditor in my Blazor page. For example I create a new Blazor WASM project and I did these steps: According to documentation I add this codes and

Generic RenderFragment not allowing parameters

I create a component PopupForm which take PopupFormAvatar component as parameter [Parameter] public RenderFragment PopupFormAvatar { get; set; } [Parameter] pu

How to use DBContextFactory in Generic Repository

My current application has three layers: Web, Infrastructure and Core. Generic Repository is in Infrasturcture layer and works fine with DBContext. After I swit

Is OpenCV with Blazor WASM in .NET6 feasible?

I'd like to process images on clientside with Blazor WASM and OpenCV. I can run OpenCV with the OpenCVSharp4 NuGet Package serverside, but that wont cut it. If

.NET 6.0 Blazor Server app: WebSocket connection to 'ws://localhost:60908/BlazorApp1/' failed

When I create a new, clean Blazor .NET 6.0 app and start it (using Visual Studio 2022), I see the following error in the browser console: WebSocket connection t

C# and MongoDB - Returning values from an object

I'm hoping someone can help: I have MongoDB collection for a User which has an Array called Reports which holds objects with IDs. I can retrieve the IDs but I'm