Embedded YouTube video in carousel in Blazor WASM
I have a Blazor WASM stand-alone (targeting .NET 9) project and I'd like to have a video play list. Just videos... no thumbnails.So far I'm not committed to any of the Blazor UI libraries but I find...
View ArticleTaskCanceledException raised by RemoteNavigationManager in Blazor Server app
I have a Blazor Server app which creates a zip file in memory and delivers that zip file via an call to a get method of an controller. I use following call inside of a button to start the...
View ArticleIs it possible to Start multiple instances of a (Thread or Background Worker)...
I want to run a Worker (as Thread or Background Worker) multiple times inside a .net Aspire AppHost Project which is started from a Blazor Website.I have the Projects (AppHost [Aspire], Web [Blazor],...
View ArticleCheck if Blazor app is WebAssembly or Server?
Started a project via cmd so not sure if it is a WebAssembly App or Server side app.Anybody know how to check this in an easy way in Visual Studio/cmd?
View ArticleGoogle Pay Integration Issue in .NET MAUI Blazor Project
I am integrating Google Pay with my .NET 8 MAUI Blazor project, but I'm encountering issues. The JavaScript code works fine in a regular website project, allowing me to pay and debug using a "TEST"...
View ArticleMove bubbles randomly with C# only [closed]
Can someone please help me with writing pure C# code that performs creation of 20 bubbles (random sizes), move them in any direction (random speed) and when each bubble collide with the others, change...
View ArticleBlazor server app with Google Web Authorization error
The integration of YouTubeService in Blazor server application always results in Error 400: redirect_uri_mismatch. The Google Cloud configuration is set for new web application with both Authorised...
View ArticleHow to bind and run an async method on input change in Blazor
So I am building a Blazor component where I want to type into an input and fire an AJAX request to get filtered data from the server. I tried this<input type="text" @bind="NameFilter"...
View ArticleBlazor Child Component UI Not Updating on Property Change
I am new to Blazor, but I have a strong background in React. I suspect I might be trying to make Blazor work like React, and that could be causing my issue.I have a BaseStep component that provides a...
View ArticleBlazor UseAntiForgery Not Rendering Page
What does this actually mean, been fighting it for hours and can't figure out what its complaining aboutInvalidOperationException: Endpoint / (/) contains anti-forgery metadata, but a middleware was...
View ArticleCascadingParameter is null problem in Blazor Server
I'm using Blazor Server on .NET 9, I have this components tree:- <ShoppingCartState> - <ShoppingCartPage> - <ShoppingCartLayout> - <ShoppingCart> route start here...
View ArticleDefining the order for an existing table using EF Core and migrations
I'm trying to set up a new Blazor project and want to add a SQL Server database to it, which I'm configuring using Entity Framework Core and migrations.I have a simple class User with some basic...
View ArticleHow to upload a file in blazor SSR .net 8?
I created an EditForm with Model and Enhance properties, when submit to the server by OnValidSubmit="Submit" the break point works in Visual Studio but IFormFile field of ViewModel is null in break...
View ArticleHow to pass a value from a page to the layout in Blazor?
I have a layout (MainLayout.razor), and it has a flag called ShowFooter. On some pages, I want to be able to set that flag to true, and on some others to false.I haven't been able to find any clear...
View ArticleIs it possible to start multiple instances of a Thread or BackgroundWorker...
I want to run a worker (as Thread or BackgroundWorker) multiple times inside a .NET Aspire AppHost project, which is started from a Blazor Website.I have the Projects (AppHost [Aspire], Web [Blazor],...
View ArticleBlazor Hybrid .NET MAUI using HttpClient
I'm using Blazor Hybrid with .NET MAUI in combination with a REST Web API to fetch data.To get my data from the API, I use a service (e.g. UserService) and the service needs an httpClient. The service...
View ArticleBlazor MVVM async service during ctor or automatic after creation?
I've been instructed to work on a new project where I'll be using MVVM in a Blazor wasm.I've been following the videos by Carl Franklin, where you create an interface of a viewmodel and inject this...
View ArticleBlazor Server: Duplicate Notifications Issue When Updating ApplicationState...
I have a notify dublication when AppState.ErrorMessage changes such as AppState.ErrorMessage = "Some error".When I click the button, where I set value, I receive notificaiton two timesMainLayoutpublic...
View ArticleHttpContext.SignInAsync does not work when you consume it through .razor page
I implement ASP.NET Core cookie Authentication In blazor server side.I write simple API Controller with Login endpoint.When I post to API via postman everything works fine and I become identified and...
View ArticleHow can I resolve the console warning "Google Maps JavaScript API has been...
I’m trying to load the Google Maps JavaScript API in a Blazor application. However, the console keeps showing the warning:Google Maps JavaScript API has been loaded directly without loading=async.This...
View Article