Category "blazor"

AutoMapper .NET6 C#10 Blazor WASM PWA

I had a problem that the AutoMapper worked in .NET5 with in Program.cs -> services.AddAutoMapper(typeof(Startup)); New Blazored WASM PWA do not have a Startu

Blazor Re-Ordering A list With Drag And Drop

I am learning Blazor having come from a WinForm UWP background. I have a list of Game: public class Game { public string ID { get; set; } public string

Blazor server not scaling (zoomed) on mobile

I made a small sensor application in Blazor server. However, when I view the app on my phone, it shows these scrolling bars (I always need to pinch/zoom out my

Best way to use multiple awaits C# .NET Blazor

In a Blazor app I have a file uploader that can take multiple files. When the user clicked 'upload' I used something like this: private async Task HandleFileUpl

How to load .gltf in a Blazor application

I am trying to load .gltf model using three.js into my Blazor application. However the server does not serve this type of files. I am aware that MIME type m

add class to element on hover in blazor

Note I can't just use CSS :hover because I'll also need to modify the class property on these elements based on keydown on a different element, and even if the

Is there a way to alter ChildContent in Blazor

I'd like to alter ChildContent my component receives from the parent like this: <Markdown> # Title Some _Content_ </Markdown> To interpret t

Embed JavaScript files inside a .NET class library for Blazor project

I'm working on a Blazor project and I'm trying to move one of the JavaScript files to a class library, I've read the following guides: https://docs.microsoft.co

Call method in MainLayout from a page component in Blazor

I have a Blazor app with a MainLayout page, which has a @Body to load the actual page content. In my case Index.razor is loaded inside the MainLayout page. Is

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