Category "blazor"

Blazor WebAssembly Hosted on IIS - only API is working

I have a project where I have developed a solution with Blazor WebAssembly Hosted model. I have a Server Project, a Client project and a Shared project (but I r

SSRS Reporting in Blazor

Has anyone had any success with integrating SSRS reporting with Blazor? If so how and what did you use? I would like to utilize my existing rdl files in Blazor

Why Return Base Method With Blazor OnInitialized Method

I am seeing more and more examples of OnInitialized and OnInitializedAsync() returning base.OnInitialized[Async]. But Why? The examples on the Microsoft websit

How to use chart.js in blazor?

I am trying to follow this example from mariusmuntean/ChartJs.Blazor : https://github.com/mariusmuntean/ChartJs.Blazor The code runs but I am getting this error

VS Code CSC : error CS1617: Invalid option '7.3' for /langversion

I downloaded VS 2017 15.7, .NET Core 2.1.2 and Blazor to try it out. It wasn't working in VS 2017 properly and thought I would try through the dotnet cli and V

.Net 6 Blazor app UseHttpsRedirection is causing many redirects

I have a .NET 6 Blazor Server and another .NET 6 Blazor Wasm site. Both work fine locally but when hosted on a shared hosting site get an error 'too many redir

Publish a Blazor Server via Azure DevOps

I have a solution build with .NET6. The solution is quite basic: DashboardUI.Server is the ASP.NET Core hosted project DashbaordUI.Client is the Blazor applicat

What is the right way to prerender Blazor WebAssembly?

It almost works after the following steps: Install the hosted version of blazorwasm template app. dotnet new blazorwasm --hosted -o HostedWasm Copy _Hosted.cs

dynamic column order, hide/show in a table

Using 'typeparam' and 'RenderFragment' to create this table template in a component. I have created a button to hide and show the description column with a Bool

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

How to publish Blazor WebAssembly with ASP.NET Core hosted

I would like to know how do I publish a Blazor WebAssembly application with ASP.Net Core Hosted checked. The big problem is that in the application they have 2

Injecting AuthenticationStateProvider into an API Controller in a Blazor Server app

In a Blazor Server app, I have an api controller class that handles file uploads. It works fine (uploads succeed) until I try to inject a custom data service th

Static Web Apps shows "Refused to apply style from <URL> because its MIME type ('text/html') is not a supported stylesheet MIME type"

I deployed to Azure Static Web Apps the default app that comes whenever you create a new Blazor WebAssembly app via dotnet new blazorwasm. At first it works pro

How to use alert(),confirm() and prompt() function using Blazor?

I am learning the Blazor technology. I started a default increment project in VS 2019 and I have modified the code for Decrement with confirm() and alert but it

How to acess the appsettings in blazor webassembly

I currentying trying to save the api url in an appsettings. However, the configuration.Propertiers seems to be empty. I am not sure how to get the setting. in p

How do I set focus to a text box in Blazor

How do I set focus to a textbox in Blazor? So far the only way we have found is with JavaScript.

Component attributes do not support complex content (mixed C# and markup)

I am trying to use a Razor argument and pass it into Blazor for further processing, but I get this error message "Component attributes do not support complex co

basic component layout inheritance blazor

Let's say most of my components have a header. I want to create a base component that has the header variable and make all the other components inherit from tha

Better way to get browser culture in Blazor webassembly / client app

I know how to get the current culture information for Blazor server app by using HTTPContext with IRequestCultureFeature. Is there any better way to get current

How to use Bootstrap modal in Blazor client app?

I am trying to show bootstrap modal then bind its buttons. But I cannot pass the first step showing the modal. I am using Blazor client template of .net core 3.