How to Call Function Inside .xaml Page From A .blazor Page in MAUI
I want to call a function from a .xaml.cs file from within a .blazor page. The goal is to call it when a specific button is clicked, but I can't find any information on how to accomplish this; the most...
View ArticleHow to suppress c# compiler warning in a razor file?
if I suppress it like that in the razor file@{ #pragma warning disable CS0618 }@inject SignOutSessionStateManager SignOutManager@{ #pragma warning restore CS0618 }Visual Studio is satisfied with that...
View ArticleBlazor Web App Server Side .NET 8 .AddMicrosoftAccount not returning Azure...
I have successfully created a Blazor Web App Server Side, and I am able to authenticate with Azure AD using the...
View ArticleAdding .Net Aspire to Existing Blazor Server App
I have a Blazor Server .Net 8 web application. I right-click on the Blazor sever project and select "Add" then ".Net Aspire Orchestrator Support".This added the two Projects (AppHost, and Service...
View ArticleBlazor JSRUNTIME iframe not working with blob
I have this in an private async Task methodawait JsRuntime.InvokeVoidAsync("Test");and is working with this :async function Test() { return await new Promise((resolve) => { iframe =...
View ArticleASP .NET Blazor pages route transitions
I am somewhat new to Blazor pages and come from a background with Angular and am aware for long loading async pages I can use route animates or skeleton loaders. I have skeleton loaders on a Razor page...
View ArticleInterop error when accessing sessionStorageService on Blazor APP
I'm building a Blazor App, this app use JWT for token generation and refresh token and both tokens needs to be stored in SessionStorageService after login:Login.razor code@page "/Account/Login"@page...
View ArticleWhy trying to pass parameters to razor components cause problem in Server...
I am trying to integrate Razor views into my ASP.NET Core 8 MVC web application.The thing is, it works, until I pass parameters. Then, it does not throw any exception, instead the browser...
View ArticleUser authorization in Blazor
I have a problem with the method that authorizes users private async Task LogUsername() { var authState = await authenticationStateTask; var user = authState.User; if (user.Identity.IsAuthenticated) {...
View ArticleFluentEditForm delayed data binding when pressing enter
I'm trying to use the Blazor FluentUIFluentEditForm and I seem to be running into a problem with when data binding occurs. If I click the submit button, the data is bound before the submit callback is...
View ArticleHow to re-render a razor page after closing a dialog in blazor?
I have a main page Transact.razor Page. Inside my Transact Page, there is a button named Add New which will open a MudDialog (AddTransact.razor) where I can add a new transaction. If I were to close...
View ArticleNo overload for 'Search1' matches delegate 'Func'
I am learning about MudAutocomplete code from https://mudblazor.com/components/autocomplete#api and copy code to run test but I found error 'No overload for 'Search1' matches delegate 'Func<string,...
View ArticleCan't log out of Blazor WebAssembly client app
In a fresh Blazor WebAssembly Standalone App (dotnet new blazorwasm --auth Individual), I updated the call to AddOidcAuthentication() to add Google...
View ArticleBlazor (WA .NET6)- TS1109 Error, how to fix it?
I've been working on a Blazor WebAssembly .NET6 project for a couple of years.I updated VS2022 recently to the latest 17.10.0(I was in the previous 16.9 before), and after that I'm having TS1109 all...
View ArticleBlazor Server OIDC Logout with Keycloak Redirects but Session Not Cleared
have a Blazor Server application configured with OpenID Connect (OIDC) authentication using Keycloak. Login works fine and I can authenticate successfully. However, when I log out, I get redirected to...
View ArticleIs there any way to disable CSS Isolation in Blazor 5.0?
I see the option to DisableScopedCssBundling but do not see a way to disable this feature completely.
View ArticleBlazor Server Redirect Causes blazor.web.js to not load from _framework...
I have a Blazor NET 8 Web Application. Currently working towards using Cookies as authentication. The login is being handled by a middleware class which does send the unauthorized user to /Login, but...
View ArticleBlazor : Root component type 'iOSClub.WebSite.Components.Routes' could not be...
When I use Blazor Web project, use:<Routes @rendermode="InteractiveAuto"/><AntContainer @rendermode="InteractiveAuto"/>But it doesn't work at all when I use itThis is the error message I...
View ArticleHow to host server side controllers, with a Blazor Web App (WebAssembly), in...
Before .NET 8, hosting server side controllers with a Blazor WebAssembly app was easy. You just clicked the "ASP.NET Core Hosted" checkbox in the project template, and an ASP.NET Core project was...
View ArticleEventCallback as CascadingValue in Razor components using @Body?
I do not seem to be able to supply a callback from the parent component to the child, when teh child is rnedered using @Body:<CascadingValue Value="isGB"><CascadingValue...
View Article