Category "blazor"

GRPC-Web + Blazor CORS Issue

I'm trying to create a Blazor WASM application that will call a GRPC gateway using grpc-web. The description of the Gateway Service is: syntax = "proto3"; impor

Blazor Server App MVVM-Pattern: Get notifyed in parent from child component change of App-State via a serviceclass in Startup.cs

I work on a Blazor-Server-App and try to follow MVVM pattern. My problem is, that I don't understand why a parentpage is not 'auto refreshed' after a property i

Blazor wait for ef core to finish request

So right now I get a Error: System.InvalidOperationException: A second operation was started on this context before a previous operation completed. Because bla

.Net Core Blazor How to pass multiple parameters?

Click the a TAB to pass multiple parameters. How to receive <a href="../navigatetopage?id="1"&key="img"></a> In the page you want to navigate

Blazor: How to use the onchange event in <select> when using @bind also?

I need to be able to run a function after a selection in made in a <select>. The issue is I'm also binding with @bind and I get a error when I try to use

C# Blazor: Countdown Timer

I'm new to C# and trying to create a simple countdown timer using System.Timer.Timers. It didn't work as expected and I searched the internet for a solution but

Embedding a Leaflet map on a Blazor SPA

How to Embed a Leaflet map on a Blazor SPA, using JSInterop, what objects should be defined, and how to pass data that represents the location clicked on the ma

Detecting navigation events blazor webassembly [closed]

How can I detect when URL is changed? I need the event (URL change event) to perform some specific action based on the URL.

In Blazor, how can I dynamically change an HTML tag?

Let's say I have the following markup in my Blazor component: <div @attributes=Attributes data-myattr="something"> @ChildContent </div> I'd lik

Why my program in blazor run so slow in my IDE?

I'm using blazor - components blazor, and visual studio community like IDE. And my program is so slow to run and build. Is normal?

Static styles.css issues after renaming Blazor project

If I start a Blazor server from scratch. Then right-click the project and click rename. All the namespaces change(EditedProjectName.Pages) but the using stateme

How to get access token in LeftNavigation in Shared folder that was returned through using AddMsalAuthentication in program.cs for authentication

In Blazor WASM, I want to display or hide some of the menu based on user roles. For that I need Access Token once user authenticate and I will pass that token t

Blazor WebAssembly InvalidCastException when running Published version on IIS

I have a Blazor WebAssembly application that works fine when debugging, but throws an exception when running on IIS (Published): blazor.webassembly.js:1 crit: M

Dark/light Theme Blazor

i have tied so many ways for switching Between Dark and Light Mode in Blazor.with different packages and Even Manually with css. but they never workedout For Me

toggle MudTable inline editing via an edit button

I am trying to get the mudtable to enter inline mode when you click on an icon. Currently it happens when you click on any row. <MudSwitch @bind-Checked="@ro

Why is my Blazor Server App waiting to render until data has been retrieved, even when using async?

I'm building a Blazor Server app using .NET 6. As an example I have a list of customers that I retrieve from a Sqlite db using Entityframework Core. I want to s

Blazor Attempting to reconnect - use web assembly, or...?

I am being plagued with the dreaded "Attempting to reconnect" message. The problem only occurs when the application is published on Azure, never when run locall

Exception: '<' is an invalid start of a value

I have a Blazor Webassembly project with a controller method as follows: [HttpGet] public async Task<List<string>> GetStatesForProfile() {

How to reset custom validation errors when using editform in blazor razor page

I have an editform using an editcontext: <EditForm OnValidSubmit="HandleValidSubmit" EditContext="_editContext" Context="auth"> <DataAnnotat

Blazor.ChartJs Mouse Click Handler not working correctly

I am writing a Blazor app using the ChartJs Blazor (Blazor.ChartJs.Fork 2.0.2) library. I am creating a bar chart with a need to determine on which bar the user