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

How to Change Navbar Background Color Based on Scroll Position in Blazor

I have implemented a sticky navigation bar at the top of my website, and I want to change its background color based on whether the page is scrolled or not.When the user is at the top of the page, I...

View Article


Detecting server pre-rendering in Blazor server app

Is there any way to detect the pre-rendering is going on in a Blazor component from the OnInitializedAsync life cycle method? I know the component workflow would call OnInitializedAsync called two...

View Article


How to replace Blazor default "soft 404" with an actual 404 status code response

The default Blazor approach to 404 is to create a soft 404 in App.razor, but I would like to adhere to search engine best practices to actually return the 404 status code while displaying a 404 page on...

View Article

blazor form SSR vs Interactive Server

I'm trying to learn Blazor, coming from a .Net webforms->MVC->API + Angular background. We have another project starting soon and we asked to learn Blazor. While going through a tutorial i'm a...

View Article

Blank page in prerender on switching between pages from different areas with...

What I have:A static server authentication area implemented as described hereAn interactive server rest of the app with App.razor configured like this:......<HeadOutlet...

View Article


FluentUI Blazor TextField doesn't update current-value correctly

I'm using the FluentUI Blazor FluentTextField component to implement a text field which enforces a max length on the input. When the user inputs a text, that is longer than the max length, the value of...

View Article

How can I add the MAUI Blazor start page to the mobile project using the .Net...

I have a .Net Maui Blazor hybrid and web app solution, with the four mobile, web, shared and client projects.Most of the application is in the shared project and the mobile and web projects display...

View Article

Using 2 different configured NLog Loggers with Microsoft.Extensions.ILogger...

I want to use 2 different configured NLog Loggers (one should log to a Database, the other to console) in a Blazor Server App and use them both in my services as individual objects using...

View Article


Blazor server app in Azure Container can't authenticate to Entra ID

I have a Blazor server application (running .NET 8) which I've put in an Azure Container which in turn is accessed via URL that is routed through HAProxy that also handled TLS termination, this...

View Article


Recommendations in .Net Documentation "Handle incomplete asynchronous actions...

I am using Blazor Interative Server, .NET 9. I have a component that makes a call to a legacy service that can take up to 10 seconds to return a response. When I first put this in OnInitializedAsync, I...

View Article

Blazor Interactive Server: Error 400 when trying to connect via websocket

I am trying to enforce Blazor Interactive Server to use WebSocket only to be able to use it in a load balanced setting. Sticky Session cannot be used due to IT Policy.When I try running it locally, it...

View Article

Image may be NSFW.
Clik here to view.

Paging is sending the wrong value to SetPage method [duplicate]

I have the following Contacts Blazor component and my paging is not working as expected. When I click page 2, the value being sent to the SetPage method is always 6. It's in the for loop for the paging...

View Article

Image may be NSFW.
Clik here to view.

Blazor dynamic form has field name issue

Consider the following code which is just a demo to show the problem I'm facing:@page "/login"@using System.ComponentModel.DataAnnotations<EditForm Model="MyModel" FormName="LoginForm"...

View Article


NET 8 - SignalR HubConnection - Cannot access a disposed object

I have an ASP.NET Core 8.0 Blazorise app. A very simple app that just brings a random number to the user.When I run my app and enter the home page, SignalR immediately closes and I get this...

View Article

C# Blazor .NET 9: automatically collect all application Policies

I use .NET 9 and blazor, ASP.NET Core Identity - role, policy, claim.To differentiate access on pages and components, the code is using policies - like this:@attribute...

View Article


Syncfusion License Key Invalid After NuGet Package Update in .NET MAUI Blazor...

I’m using Syncfusion Blazor components in my .NET MAUI Blazor app. Everything was working fine until I updated the Syncfusion NuGet packages to their latest version. After the update, my application...

View Article

Reusing authentication data from .net framework 4.8 in .net 9

I'm currently starting from scratch rebuilding a 15 year old website from .net framework 4.8 into .net 9 (blazor server).The old authentication data is in a SQL db together with other data my website...

View Article


Is it possible to modify WebView2 settings in a blazor wpf app?

I have a wpf app with blazor integrated in it. I would like to disable certain features like dev tools and page zooming. To do this, you would generally modify WebView2 settings like so:var...

View Article

Blazor base component action on creation

In Blazor WASM I have a service that has event property. I want to subscribe to this property immediately after the service is injected into component that is the used as a parent component(base class)...

View Article

Blazor ApplicationState.RegisterOnPersisting callback is never called

I have a blazor app which I have updated to .net 8The app is an Interactive Server application with prerendering enabled.I am trying to avoid loading data twice (see...

View Article
Browsing all 4294 articles
Browse latest View live


Latest Images

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