Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Browsing all 4017 articles
Browse latest View live
↧

I keep getting a HTTP 404 error when trying to go to a Razor page

I'm working on a new Blazor app. This is the first Blazor app I've worked on since taking a Blazor course. I've added some razor pages as well. One of the pages never is found and always raises a HTTP...

View Article


Blazor: How to use the onchange event in 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 @onchange stating that it is already in...

View Article


Image may be NSFW.
Clik here to view.

How to send access token in Telerik report using abp framework

I'm working in and ABP + Blazor project, we are using Telerik for blazor. I've testing how a report(.trdp file) works. So I've integrated a report as Telerik's documentation expecified.This report is...

View Article

CS0117 - 'HttpClient' does not contain a definition for 'GetFromJsonAsync'

I'm following the Microsoft tutorial on Blazor. I'm getting the 'HttpClient doesn't contain a definition for 'GetFromJsonAsync' error when trying to use this extension method in the Index.razor page....

View Article

Image may be NSFW.
Clik here to view.

FileStream could not find a part of the path

Using FileStream with Blazor results in Could not find a part of the path error while trying to load file. I tried using Path.Combine instead of direct path, but it didn't helpFileStream stream = new...

View Article


How to persist security in Blazor while prerendering

I'm new to Blazor and having an issue with a component.In OnInitializedAsync, we're making a call to get the data for the component. We have prerendering enabled.By default, so OnInitializedAsync is...

View Article

Image may be NSFW.
Clik here to view.

Where to locate reference files for multiple platforms in .NET 9.0 MAUI...

In Visual Studio 2022, the new version .NET 9.0 project template ".NET MAUI Blazor Hybrid and Web App" will create the following projects in a new...

View Article

JS Runtime Cancellation Token timeout error in ASP.NET core

I'm building an ASP.NET core application with ef core. When I try to show a Popup that doesn't have a timeout with this command:await _jsRuntime.InvokeAsync<Task>("showVersionUpdate", version,...

View Article


How can I retrieve data from a Scoped Service in a Singleton Service?

We've been facing an issue in our Blazor Server AppUser Logs in.When user is Authenticated is shown a companies list.User can choose between one of the companies in the list.In this moment we need to...

View Article


Can you use IAsyncEnumerable in Razor pages to progressively display markup?

I've been playing around with Blazor and the IAsyncEnumerable feature in C# 8.0. Is it possible to use IAsyncEnumerable and await within Razor Pages to progressively display markup with data?Example...

View Article

Image may be NSFW.
Clik here to view.

Blazor - Nested component does not highlight invalid fields or display...

I can't figure out how to highlight invalid fields and display individual ValidationMessages for nested components. The same code when added to the page works as expected, but when moved to a separate...

View Article

BlazorNotifyAuthenticationStateChanged doesn't update authorized-based elements

I'm implementing a custom AuthenticationStateProvider and using information from user claims in mainLayout. As far as I understood after executing NotifyAuthenticationStateChanged method should itself...

View Article

Image may be NSFW.
Clik here to view.

use InteractiveWebAssembly in Blazor Web App

I created project from this template (.NET 8):And I want to use InteractiveWebAssembly in Counter.razor page.I add modification in Program.cs:builder.Services.AddRazorComponents()...

View Article


Blazor SSR (no interactivity), how do you display a 'loading' message while...

I use NuGet package BlazorPageScript, so I have access to onLoad() and onUpdate() javascript functions.

View Article

Dockerfile for .NET 9.0 WASM stand-alone PWA: docker build error at the...

I am new to Docker, but having followed a course (which used Node.js as the app framemwork) and a couple of other tutorials, I have tried to develop an initial test Dockerfile for .NET 9.0 Blazor WASM...

View Article


Difference between executing source code written in publish and debug

I have written a class whose job is to return the maximum and minimum value of any data typeThis class works fine when debugging the project, but when we publish and run it and enter the part where we...

View Article

Image may be NSFW.
Clik here to view.

MainLayout and Sidebar rendermode in Blazor

My application is built with .NET8 in Blazor. The configuration in the Program.cs is likebuilder.Services.AddRazorComponents() .AddInteractiveServerComponents() .AddInteractiveWebAssemblyComponents();I...

View Article


How can I style a FluentUI component in Blazor?

I'm new to FluentUI. I just started a MAUI/Blazor hybrid app and I'm struggling to apply the styles that I want to my FluentUI components.Styling works when I use inline styling.For...

View Article

Blazor Server .NET 8 with API auth - AuthState is always false

The issue: AuthState is always false, even after successful API auth and after HttpContext.SignInAsync.I'm stuck with this as I don't understand why Blazor is not updating the authState.Before .NET 8,...

View Article

Image may be NSFW.
Clik here to view.

JWT not present on certain page only?

I am dabbling with a .NET 8 Blazor Web App, but have run into a strange issue: I am logging in to my site, and creating a JWT.However, when I visit the only secure page in the project, the cookie...

View Article
Browsing all 4017 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>