Blazor Server .NET 9 Preview: CS1061 Error for...
Issue:I'm developing a Blazor Server application targeting .NET 9. I'm using standard Cookie Authentication and trying to configure authentication state handling for prerendering.My goal is to ensure...
View ArticleHow to check an InputRadio radio button in Blazor by default
Using Blazor Server, I am trying to setup some radio buttons within a form and check the first one by default.I'm using InputRadio within an EditForm and setting checked="checked" or checked="true" but...
View ArticleBlazor SPA application as an Asp.Net Core Mvc Area, possible?
I have an existing mvc dotnet 8 core application with many MVC "areas".Each area is a very specific and has some authorization/access rules and I need to add a new one for some business backoffice.I am...
View ArticleBlazor web app OpenID Connect authentication's remote sign-out endpoint gives...
In a Blazor SSR web app, I have configured the OIDC authentication and the RemoteSignOutPath has been set.builder.Services .AddAuthentication(options => { options.DefaultAuthenticateScheme =...
View ArticleBlazor Server with Interactive WebAssembly render mode vs Blazor WebAssembly
I come from a Laravel PHP background and I am new to ASP.NET Core and Blazor. I'm interested in exploring Blazor and planning to use PostgreSQL as the database and ASP.NET Core for the backend.I have...
View ArticleBlazor Identity with Google Auth is not redirecting to ExternalLogin endpoint
Blazor web app with Identity and MongoDB.Working on Google Authentication. When I click the Google login button, the /PerformExternalLogin endpoint is hit as expected.Then it is redirected to Google's...
View ArticleHow to pass a string argument to the @onclick event in Blazor?
I'm messing about with a Blazor App template created in Visual Studio 2019. I know the project is using the ASP.NET Core 3.0 but what version of Blazor it is, I don't know. It'll be pretty new though...
View ArticleError Blazor WASM, using Blazorise and Lottie animation
In a Blazor Web Assembly project, I'm trying to use the Blazorise library to use Lottie animations. I'm following the steps in the documentation, but I get the error:"Value for property ClassProvider...
View ArticleBlazor SPA application as an ASP.NET Core MVC area, is this possible?
I have an existing ASP.NET Core 8 MVC application with many "areas".Each area is a very specific and has some authorization/access rules and I need to add a new one for some business backoffice.I am...
View ArticleBlazor server app on nginx is not displaying images
I created Blazor server app like Blazor's exampleI just changed Icons and menuitems description.This works in debug on my Windows computer, but when I deployed it to my Rpi Nginx, then this is loading...
View ArticleButton click not triggering method in Blazor WebAssembly
I am working on a Blazor WebAssembly app in C# and I have a problem with a button click event. When I click the button, it should trigger the BuscarVehiculo method, but the method is not being called....
View Article.NET Aspire: why doesn't WeatherApiClient.BaseAddress resolve correctly?
For the .NET Aspire Starter App, imagine that I extended the WeatherApiClient like this:namespace AspireApp1.Web;public class WeatherApiClient(HttpClient httpClient){ public Uri? BaseAddress =>...
View ArticleHow to control formatting of attributes with explicit expressions in Razor...
I can't for the life of me figure out how to do this, if possible.When using explicit expressions as values for EventHandlers or actions on components, is there a way to define how you want them...
View ArticleBlazor serverside - why is exception not thrown when in task ? How to avoid...
In my Blazor server app, I have the famous 'counter' page / buttonprivate void IncrementCount(){ currentCount++; throw new Exception("test");}This is ok - exception is thrown.If I change it to...
View ArticleBlazor dynamic meta tag encoding issue
EDITED: I do have <meta charset="UTF-8"> in my MainLayour.razor.Using Blazor on .NET 9.0, I have the following in my MainLayout.razor<meta name="title" content="@this.MetaTitle">and in the...
View ArticleWhen trying to submit a form to an API endpoint I get a POST error
So I'm trying to submit a form from a .razor page to an endpoint I've made in a controller, but when I do I get returned a very odd error that despite my best efforts to understand Blazor routing,...
View ArticleJsInterrop module in WebAssembly
I was using the async IJSRuntime to run JsInterrop function in my WASM project with a JS module to load the function. private readonly Lazy<Task<IJSObjectReference>> moduleTask; public...
View ArticleValidation error from a custom validation attribute not seen until I edit the...
I have a custom validation attribute class deriving from ValidationAttribute. The error thrown from this class is correctly seen when I edit the form field. I want the error to be also seen when user...
View Article.NET Blazor prerendering disabled, link still called twice
I have a .NET 9 Blazor server side application. In the layout file I have a <NavLink> that points to my login page. The login page is not a razor page, but a mapped Controller ([ApiController]...
View ArticleHow to draw in Blazor simple boolean lamp switching depending on variable
I'm trying to draw in Blazor app a lamp as circle which would change the color to green when the state of the boolean variable is activated. Firstly I tried just display a gray circle, but nothing is...
View Article