Quantcast
Channel: Active questions tagged blazor - Stack Overflow
↧

Markdown files in Blazor project

I am creating a simple portfolio/logbog website for a school project (computer science). It is written in Blazor with server-side rendering.As it is right now, my entries/posts are saved as a...

View Article


Blazor Server: Unique Id For Distinguish Clients

Ok I'm trying to detect requests source in Custom AuthenticationStateProviderSo here is my tries:Session Id not working because every request retrieves tottally new id in same browser because of...

View Article


Conditionally hide text fields in Blazor

I have a dropdown list with options '1' and '2' and text fields with the same names. My goal is that when I select option '1' from the list, only the text field named '1' should appear. When I select...

View Article

JetBrains Rider does not recognize MudBlazor components imported via global::...

I am using JetBrains Rider 2025.3.2 on macOS with a MudBlazor project targetting .NET 8, C# 12. The project builds and runs correctly, and the same codebase works without any issues in Visual Studio,...

View Article

Adding Razor Pages from another project into Primary Blazor Web App Project

I've moved the scaffolded Dashboard Razor Page from a blazor server app into a separate project(RCL). There are no build/compile or runtime errors. The project runs. I am trying to develop a modular...

View Article


JavaScript breakpoints are never hit while debugging Blazor web app (.Net 10)

Created simple web app, added one page to test invoking JavaScript.The JS works fine but I am unable to hit a breakpoint in the JavaScript.I have the 'Script Debugging' set to Enabled in Visual Studio...

View Article

Image may be NSFW.
Clik here to view.

How to change default settings like Formats > Blocks > Paragraph in TinyMCE...

In the image below you can see the checkmark beside paragraph. How do I set that to default to Div?I'm using Blazor and am using a dictionary to populate the Conf attribute like this:Razor:<Editor...

View Article

Problem with local razor.css file on Visual Studio/Blazor Web Assembly...

I'm developing my own website, on Visual Studio/Blazor Web Assembly Standalone, in which I have a MainLayoutenter image descriptionenter image description here here, and I've added a local razor.css...

View Article


XmlSerializer error deserializing to XElement in Blazor WebAssembly

I have a Blazor web project that I encountered a problem with when I published to a test server. Everything had been working when running in VS2026. I open an XML document via a stream and deserialize...

View Article


Blazor app referencing wrong css file after adding references to ElectronNET

My Blazor app runs fine in the browser, but the styles break as soon as I add references to ElectronNET.Core and ElectronNET.Core.AspNet (per the docs).Without ElectronNET, the CSS file is named...

View Article

Blazor .NET 10 dependency injected service call is not even firing

I have an issue with Blazor not firing or completing the call when I inject a service interface to make some backend/database calls and use that in my page.I have a service layer with an interface like...

View Article

Using @attribute [Authorize(Policy = "...")] throws IAuthenticationService...

I am trying to use policy-based authorization in a Blazor Server app using the Razor attribute:@attribute [Authorize(Policy = "PolicyName")]After adding app.UseAuthorization() and...

View Article

Blazor Server Policy Failing with "The trust relationship between the primary...

This is a Blazor Web App using global server interactivity on .NET 10.I use our internal Windows Active Directory to assign custom roles, which I have not experienced a problem with. However, after...

View Article


SafeArea not functioning on Android devices with notches (e.g., Pixel 7) in...

I'm experiencing an issue in my .NET MAUI Blazor application where the SafeArea does not function as expected on Android devices with notches, such as the Pixel 7. This issue began after updating the...

View Article

Image may be NSFW.
Clik here to view.

Blazor Server Side IIS Hosting Issue

Pulling my hair out trying to set up a Blazor Server Side application on IIS.I've already installed the application on one test server without too much difficulty however I've now run into difficulty...

View Article


In a Blazor project, can I download a file without js interop?

The premiseI'm working on a Blazor program which handles a database of companies and related CRUD operations.I'm on .NET 8.0, writing on Visual Studio Community 2026 v. 18.3.0, with InteractiveServer...

View Article

Image may be NSFW.
Clik here to view.

No compatible code running on thread when debugging Blazor WASM Standalone

I created a brand new Blazor WASM standalone project configured to use Microsoft Entra. Everything works fine, but I can't even put a breakpoint to inspect anything in my code.I get the following error...

View Article


Image may be NSFW.
Clik here to view.

In MudBlazor's DataGrid, how do I change the labels on default filters?

MudBlazor has a DataGrid component that comes with robust, out-of-the-box filtering capabilities. I am using the mode DataGridFilterMode.Simple, which provides a popover to apply filters to all columns...

View Article

What would cause Blazor components in an ASP.NET Core MVC app to stop working...

I've been trying to upgrade my Orchard Core modules to .NET 10 and have been having an issue with my Blazor module.I'm getting an error405 - Method Not Allowedon a request to...

View Article

In MudBlazor's MudStepper Icon is not getting displayed

Trying to Make Mud Stepper dynamically. I have four steps to show. It should display with icon and title. But Its showing title and numbers instead of icon. Do we need to install some specific library...

View Article

Is there a Blazor equivalent to WinForm's PropertyGrid?

I have a long overdue UI upgrade for a WinForms application and am going to make it a Blazor app. The legacy app configuration is made using WinForm's PropertGrid. Is there an equivalent Blazor...

View Article


How to transfer session data from SSR to Interactive mode in Blazor?

everyone!!I am a student who has just started learning Blazor (.NET 8/10), and I am completely confused about how to correctly transfer session data from SSR (server-side rendering) to Interactive...

View Article


OIDC Authentication Fails on Public URL Behind Reverse Proxy IIS

I am using WSO2 Asgardeo authentication for my Blazor WebAssembly hosted application.The application is hosted on an internal server:https://test.myapp.localI have configured a reverse proxy on another...

View Article

Blazor pipeline broken when introducing authorization

I've been wrestling with this for quite a while now. I have a working blazor (auto - hybrid) project called CustomerPortal and it created a CustomerPortal.Client for me as well.I created a 2 razor...

View Article

Image may be NSFW.
Clik here to view.

Add a text above an image using MudBlazor

I need to implement this kind of view using mudblazor image components:I got the images correct, but how can I add text on top of the image like in the picture above? Here is my...

View Article


Blazor dynamic meta tag encoding issue

EDITED: I do have <meta charset="UTF-8"> in my MainLayour.razor.Using Blazor on .NET 9.0, I have the following in my MainLayout.razor<meta name="title" content="@this.MetaTitle">and in the...

View Article

AuthorizeRouteView Authorizing and NotAuthorized parameters settings

I wanted to use the NotAuthorized attribute in the <AuthorizeRouteView> tag to redirect to the login page every time a non logged-in user try to access a page.Howewer, it requires a...

View Article

Blazor spinner component and service

Two failed attempts at making a spinner component. I can't explain what's going on.Using a service I need to add @rendermode InteractiveServer to make the @onclick do anything, but then when clicked...

View Article

Best Practice passing object to component blazor

I need advice or an idea how this can be improved - what is the correct (or better) way to passing a large object?I have a page called Tracker.razor. This page was specifically only for grabbing data...

View Article



Image may be NSFW.
Clik here to view.

Azure Web App | Deployment Error - Framework-dependent is an invalid value...

I am trying to deploy a web application in Blazor (.NET 8) using Visual Studio 2022.I have linked my Azure account and I'm trying to deploy the web application in one of my Azure web apps.When...

View Article


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