Category "blazor"

.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.

How to host an ASP.NET Core Blazor WebAssembly Hosted App on AWS?

What to do to safely host a Hosted Blazor WebAssembly App (Which has 3 projects i.e. Server, Client and Shared) (.NET Core 6.0) on AWS for someone who has never

How to host an ASP.NET Core Blazor WebAssembly Hosted App on AWS?

What to do to safely host a Hosted Blazor WebAssembly App (Which has 3 projects i.e. Server, Client and Shared) (.NET Core 6.0) on AWS for someone who has never

Can Blazor create wasm modules without any UI references or code?

Looking at the Blazor documentation I get the impression that it is meant to be used to develop client side browser applications. A subset of this should be c

Blazor @attribute [Authorize] tag is not working

I have a working .NET Core 3.0 MVC website, using AzureAD for authentication, this all works fine. I have started to migrate some of the front-end pages to Blaz

Blazor Textfield Oninput User Typing Delay

How can I add a delay to an event (OnInput) in Blazor ?For example, if a user is typing in the text field and you want to wait until the user has finished typin