Questions tagged [blazor-client-side]

The client side execution of commands in the browser; apart from the server side code.

Blazor is a web framework designed to run client-side in the browser on a WebAssembly-based .NET runtime (Blazor WebAssembly) or server-side in ASP.NET Core (Blazor Server). Regardless of the hosting model, the app and component models are the same. ASP.NET Core Blazor hosting models

784 questions
6
votes
1 answer

Blazor Radzen dropdown on primitive type?

I have a Blazor application where I am using the Radzen components. Specifically, I am using the drop down component. I am running into an issue where I am unable to bind the Data to a list of floats.
6
votes
2 answers

Why does Blazor renders component twice

I have a simple Blazor component.
Click me
@code { public async Task HandleClick() { await Task.Run(()=> System.Threading.Thread.Sleep(1000)); } protected override void OnAfterRender(bool…
partyelite
  • 722
  • 13
  • 22
6
votes
4 answers

Breakpoints won't hit in Blazor Webassembly project, ASP.NET Core 3.1,

Breakpoints won't hit in ASP.NET Core 3.1, Blazor Webassembly project. I have a solution with a single Blazor Webassembly project which I run locally. When placing a breakpoint in a .cs file it says: "The breakpoint will not currently be hit. A…
6
votes
2 answers

Unable to override OnAfterRenderAsync in client side blazor

In my Blazor client-side app, I am trying to override OnAfterRenderAsync using @code { protected override async Task OnAfterRenderAsync() { } } I get an error no suitable methods to override!? On the other hand this override works…
mko
  • 4,825
  • 8
  • 45
  • 97
6
votes
3 answers

Dependency Injection In Blazor Component file

I have a blazor component in my application: public class IndexComponent : ComponentBase { public string ContentRoot { get; set; } public string WebRoot { get; set; } private IHostingEnvironment HostingEnvironment; public…
Saurabh
  • 1,215
  • 17
  • 30
6
votes
2 answers

Blazor client-side Application level exception handling

How to globally handle application level exceptions for client-side Blazor apps?
AlvinfromDiaspar
  • 5,868
  • 13
  • 63
  • 120
5
votes
2 answers

How to resolve "TypeError: Failed to fetch" error on Blazor?

I am trying to send an HTTP request from my Blazor app to my ASP.NET Core API. I have breakpoints everywhere. The application gives an exception right after the action method on the API controller returns. I am familiar with .NET overall, however, I…
5
votes
1 answer

Why is there a in Blazor's index.html or _Host.razor file?

In every Blazor project, there is a inside of index.html or _Host.razor (depending on whether you're using Blazor WebAssembly or Blazor Server). Now, I know what this tag does, simply any value put inside of its href attribute would…
Arad
  • 1,815
  • 2
  • 19
  • 39
5
votes
2 answers

Blazor WASM Authorization not working with AAD Roles

I am trying to set up AAD Authorization based on user defined roles following this doc https://docs.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/azure-active-directory-groups-and-roles?view=aspnetcore-3.1#user-defined-roles I am able…
5
votes
3 answers

Blazor Navigation Manager Go Back?

While using blazor, I want to be able to "go back" to a page I was before. I found this issue and looks like it's a dead end? This feature is something so basic, that I can't believe it doesn't exits. Is there any walk around to make this "go back"…
Vencovsky
  • 17,142
  • 1
  • 46
  • 97
5
votes
1 answer

Customizing the AuthenticationStateProvider in Blazor Server App with Jwt Token Authentication

I've noticed that many developers subclass the AuthenticationStateProvider both in Blazor Server App and Blazor WebAssembly App wrongly, and more imprtantly for the wrong reasons. How to do it correctly and when ?
5
votes
1 answer

Understanding Blazor Assembly with ASP.net Core Hosted Model

I've been reading quite a few articles about Blazor and the different hosting models (3 actually). The easiest to understand is the pure client model, which is a standalone app that runs on webassembly. No problem there. But I continue to struggle…
Franky
  • 445
  • 4
  • 13
5
votes
2 answers

Recompile .razor files on save for Blazor WASM

Is there a way to make Blazor Webassembly recompile .razor files when they're changed/updated and then saved? I'm used to this happening both in traditional ASP.NET Core MVC razor views as well as client-side frameworks like Angular. In ASP.NET…
Ben Sampica
  • 1,437
  • 1
  • 11
  • 17
5
votes
2 answers

Best way to share data between two child components in Blazor

I have this code. @renderFragment where @renderFragment is dynamically…
5
votes
1 answer

"Blocked loading mixed active content" in Blazor WebAssembly app which uses IdentityServer4

I'm trying to run default Blazor WebAssembly project template on my web server. Project, when ran locally, works without any problems. Problem appears after I deploy it to server. I can successfully navigate to any page that doesn't require…
Piotrek
  • 9,838
  • 14
  • 66
  • 120
1 2
3
52 53