Category "blazor"

Blazor Server App - Modular Front-Ends (Micro-frontends)

We are looking for a way to get Blazor Server loading other Blazor Server projects. Our goal is to have a micro-frontend approach, where each micro-app is also

In Blazor, how to set element IDs to different values per component instance, but the same value within the component instance?

In Blazor, I might often have the same component render on a page twice. Inside this component, I might have <label for="foo"> that refers to an <input

HttpClient timeout on Braintree call in Blazor

I'm deploying my .Net 6, Blazor Server site for the first time on shared hosting. It's all seems to work so far bar two things. In the browser console (Chrome)

Blazor @page route url define with variable

I have a question for Blazor Server Side. I want to @page route url define with variable or property. I can use now with below default method @page "/route-url"

Setting the global state only once using Fluxor in Hosted Blazor WASM app

I have a .NET 5.0 Hosted Blazor WASM app that looks like this: I am using scaffolded Identity razor pages in server project for sign in and sign up etc. I want

flexible width with overlaping divs on blazor with CSS and bootstrap

I have a hand of cards on my UI and I want to allow fitting more cards than actually fit on the div, by letting them overlap if necessary. My cards are linked t

Getting 404 NotFound for blazor.webassembly.js (_framework files not found)

We have searched other issues along this line, and found that they seem to apply to after a site is deployed. This happens within VS 2019 when trying to debug.

Visual studio 2022 highly used memory

I working with Visual Studio2022 and blazor .net 6 when i worked after 1 hour visual studio highly used memory and crashed on my pc (windows server 2019).

Blazor new WebAssembly App doesnt show the install app option

When I create a vanilla blazor webassembly app clicking ASP.Net Server Hosted and also the PWA option in the last week (over 5 test projects) and run the code a

How prevent Blazor EventCallback reset selected item to default value

I have a problem with the return event of a child component on Blazor. I am currently using MudBlazor, I have created a component called BrandSelect which loads

How do I avoid using a client secret or certificate for Blazor Server when using MSAL?

When using Blazor Server and the MSAL library you must provide either a client secret or a client certificate. Here is what a Blazor Server project uses to setu

problem showing PDF in Blazor page from byte array

I have gone through all the suggestions for how to take a byte array stored in SQL Server db as varbinary and display it as PDF in a Blazor website. I'm success

2022 wasm blazor.webassembly.js not found .net5 to .net6 upgrade

I am trying to upgrade from a Blazor WASM .net5 project to .net6. I change the to net6.0 on all the projects. All compiles well, but I get a 404 error on loa

Problem Using Microsoft.Identity.Web with Blazor Server App

I'm using Visual Studio V16.8.2 with the .Net 5 templates and I'm trying to create a Blazor Server app that will authenticate against Azure AD. I use the Blazor

How to re-render Blazor component when a parameter changes

I have two Blazor component. First component just displays the list of students from a JSON api <select @onchange="selectStudent"> @foreach(var student

Blazor Timer call async API task to update UI

I am setting up a timer in a Blazor server-side page. The goal is to call an API every x seconds and based on the return value, update the UI. I got this code:

Blazor WASM redirect to login when not authenticated - Don't show layout

I have a Blazor WASM having 2 layouts: MainLayout LoginLayout My main Index file has an Authorized attribute @page "/" @using Microsoft.AspNetCore.Authorization

ASP.NET Core MapFallbackToFile is not handling non-existings urls. Only homepage

I am creating Blazor app. If I navigate to homepage - page loads fine, then I navigate into article e.g. localhost/new-article. Next step is page refresh via F5

"WriteLinesToFile" task was not given a value for the required parameter "File"

Error MSB4044 The "WriteLinesToFile" task was not given a value for the required parameter "File". BlazorTutorial.Client C:\Program Files\dotnet\sdk\5.0.

Blazor Hybrid App how to navigate to pages

How can I navigate between Razor pages in an Blazor Hybrid App? I found this explanation: https://docs.microsoft.com/en-us/aspnet/core/blazor/hybrid/routing?vie