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

Blazor Web App (.Net 8) with Windows Authentication

I have created a new Blazor Server Web App in .Net (the one that has both server and client projects). I would like to use Windows Authentication on this app but I'm not sure how I configure it. In the...

View Article


Is there a way to invoke window.onload using Interop inside Blazor Wasm...

I am trying to create an application which uses Moneris Hosted Payment Solution- basically implementing an iframe which needs to register an event on window on load. It has postmessage api, which when...

View Article


.Net 8.0 Blazor: Authorize with policy on Page always redirecting to...

I'm having an issue with Policy authentication in my .Net 8 Blazor hybrid application using Microsoft Entra for authentication.The entra authentication is working and I have a page that verifies...

View Article

.NET 8 Blazor server web app : use different style libraries

I hope to have two different pages in the web app that use different style libraries, such as one using Bootstrap 3 and the other using Bootstrap 5In .NET 7, two different implementations of...

View Article

Blazor FluentUI Virtualized Combobox: Display Text and Search Issues

I'm working on a Blazor Web App that interacts with my SQL Server, and I'm trying to create a reusable custom Razor component for a virtualized FluentCombobox.The goal is to pass in a list of objects...

View Article


How to avoid selecting the default value in a dropdown in Blazor?

I have a dropdown with a default value By default the first option is selected automatically but I want to ensure that users actively select a value instead of using the default<select...

View Article

Why is @foreach with @onclick not working? [closed]

I’m trying to dynamically generate buttons in a Blazor component using a @foreach loop. Each button should trigger a method with the corresponding item as a parameter@foreach (var item in...

View Article

Enable content on row hover in Blazor wasm

I have a Blazor table component with a variable number of rows, based on a collection:<table id="MyTable" class="table table-hover"><thead><tr><th>Item...

View Article


How do I call MS Graph API from the server app in a Blazor WASM Hosted...

The client FE app (Blazor WASM) signs in the user and then passes the access token along to the server BE app (ASP.NET Core Web API). Now, I'd like to somehow add the Graph client to the DI container...

View Article


How to use TailwindCSS with dynamic content which came from DB?

We are working on a CMS which is based on ASP.NET Core Blazor & TailwindCSS. we've developed multiple blocks using tailwindcss and used tailwind's cdn script for development. but it's performance...

View Article

There was no runtime pack for Microsoft.AspNetCore.App available for the...

I'm trying to migrate from ASP.NET Core 3.1 to 5.0 using this migration guide provided by Microsoft.I installed SDK 5.0.100-rc.1 with runtimes. I updated the project as the guide says, but I'm still...

View Article

ASP.NET Core Blazor -> Scoped AppState lifecycle of Blazor components

I am using ASP.NET Core to build a simple login with multiple Blazor components.I want to store my AppState such as IsLoggedIn inside my AppState code and subscribe to the OnChange method for UI...

View Article

JavaScript interop exception when reading from browser local storage in...

I'm developing an application using .NET 9.0 and Blazor Server-Side, and I'm using the Refit NuGet package to make API calls.Some of API methods require a JWT access token for authorization. This token...

View Article


Html number input handling in blazor

I am facing issue in handling max with manual input. My implementation works like: when input value is already equal to max like 13 equal to 13 and I enter more value it becomes i.e 136. I am trying to...

View Article

Blazor Server .NET 6.0: multiple tabs - cookie authentication - revalidating...

In Blazor Server 6.0, cookie authentication scheme is used and cookie is being set. However, after cookie expires, navigation to other links in the app - the requests are still being served to the...

View Article


How can I declare an array for ChildContent RenderFragment

I have wrote 2 components:MyLine.razorMyTable.razorHere is how I want to use this components:<MyTable><MyLine /><MyLine /><MyLine /></MyTable>Here is what I've wrote for...

View Article

In a MudBlazor DataGrid, how can I use inline editing and also use...

I'm using a MudBlazor DataGrid with cells that use TemplateColumn for custom color. I would like to use EditMode="DataGridEditMode.Cell" for inline editing, but when I do I lose the TemplateColumn.Is...

View Article


Why Blazor app showing an error with any page reload

I am working on project with Blazor technology. I need sometimes to use some JS code, and I need to include diffirant js files with each page, and as I know the only way to do it is adding it using JS...

View Article

Blazor execute C# and JS function in one button onclick event

I have a button, which executes a JS function:<button class="btn-orange btn" onclick="expand(this.closest('.profile'))">JavaScript</button>And a button, which executes C# and switches icons...

View Article

Is it possible to mix Javascript and C# code in a DOM event?

I'm trying to achieve the next in Blazor WebAssembly; I need to be able to listen for an event in a component, and use both Javscript and C# code like the next way:<button...

View Article
Browsing all 4839 articles
Browse latest View live


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