Questions tagged [blazor]

Blazor lets you build interactive web UIs using C# instead of JavaScript. It is a feature of ASP.NET, the web development framework from Microsoft that extends the .NET developer platform.

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

Blazor wasm localization date format incorrect

I am getting wrong dateformat for danish and english-danish culture in Blazor wasm Console App example CultureInfo ci = new("en-DK"); Thread.CurrentThread.CurrentCulture = ci; Thread....
Niputi's user avatar
  • 33
0 votes
1 answer
21 views

Is it possible to run Blazor WASM project locally on IIS without having to publish it?

I'm building a Blazor WASM app that needs to run in the same domain as the web API project that already exists. So if the API runs on https://localhost the Blazor App needs to be in https://localhost/...
Marko's user avatar
  • 12.6k
0 votes
3 answers
71 views

Blazor Input Date does not revalidate upon value assignment

I have an InputDate from Blazor which should revert to the previous date if the change confirmation is not accepted which works. However, when I input something like 11/31/2024 which is an invalid ...
Yzak's user avatar
  • 93
-1 votes
0 answers
41 views

Can I "Fill" a class in an aync catabase call, or is it necessary to make a new object? [closed]

This is specifically a Blazor / .Net question, but C# and SQL are so tied in that I think they have to be considered as a group. [Parameter] used to initialize .razor components are are meant not to ...
Bennyboy1973's user avatar
  • 3,528
2 votes
1 answer
71 views

MudBlazor DataGrid Column Headings not Bold

I am using mudblazor 6.10.0. I have a MudDataGrid and everything works fine but the column headings are not bold like in the samples. I have the grid defined as follows <MudDataGrid T="Range&...
BankMan101's user avatar
0 votes
0 answers
38 views

NET7 Blazor: browsers failed to load resources from the components

I have my Blazor application deployed on a server. The Blazor application is hosted by an ASP.NET Core website. Initially, I had issues with the integrity but after a few bin and obj deletions, maybe ...
Enrico's user avatar
  • 3,732
1 vote
3 answers
106 views

What are the best / acceptable practices for choosing void, Task or async Task in Blazor?

My site is DB heavy, which means many/most of my event handlers are async Task. I've developed the habit of making ALL event handlers async Task, so when I get my SQL service methods ready, I'm good ...
Bennyboy1973's user avatar
  • 3,528
0 votes
0 answers
27 views

How can I split role claims blazor web assembly?

I'm on client side project of blazor web assembly. This is my Program: using Blazored.LocalStorage; using Epicerie_Client; using Epicerie_Client.Services; using Epicerie_Client.Services.Interfaces; ...
mathdx's user avatar
  • 53
-1 votes
1 answer
37 views

Blazor Server Best Practices About Coding

I am building a Monitoring Dashboard Application using Blazor Server. It contains 5 pages and each page have 5 to 10 components to show. I want users to switch between pages quickly like desktop app. ...
agubugu's user avatar
  • 25
2 votes
2 answers
74 views

How do I show a loading indicator while images are loading for a Blazor Server application?

I'm working on Blazor Server project which has to load images from a private blob storage location, and display them to the user, according to the docs the way to do this, is to create a JS interop ...
Alex's user avatar
  • 960
3 votes
1 answer
68 views

Converting circular structure to JSON error - while passing data from JS to CS

I am trying to pass all the series in the chart from JS to CS using dotNetHelper. But get error in this line "window.dotNetHelper.invokeMethodAsync('Items', allSeries)". I tried different ...
So25's user avatar
  • 65
1 vote
1 answer
39 views

Nested component two-way binding

I am working on a small blazor server-side page and two-way binding isn't working as I'd expect. I've distilled what I'm seeing to a basic example below: // CreateBill.razor <EditForm Model="@...
Killnine's user avatar
  • 5,796
0 votes
1 answer
33 views

How to call OnBatchSave="BeforeSave"

I have a problem with my custom SfDialog. First I explain what I want to happen. Namely, after the user has made a change to the grid and then click on Update in the toolbar appears my Custom SfDialog,...
Jorgetryingsomething's user avatar
-2 votes
1 answer
34 views

Compiling a blazor project visual studio

Today I was surprised how visual studio compiled my project with no errors even though a page uses a custom component that is not included in my solution... So I didn't realize about this issue until ...
Francesc's user avatar
0 votes
0 answers
28 views

How to check if user is authorized to see a tab page in a teams toolkit project?

Using Microsoft teams toolkit i can add a tab page to a channel and display data from e.g. a database. The data displayed can be configured while tab creation using current the user permissions. Using ...
sven543524's user avatar
4 votes
1 answer
87 views

MudBlazor Dialog now opening, No errors thown

I am using mudblazor 6.10.0, I am having an issue with the Dialog not showing up, even if I use an out of the box dialog it does not open. I do not get an error on the console and no error occurs in ...
BankMan101's user avatar
1 vote
2 answers
60 views

Blazor - component displays once then doesn't show again

I have created a 'toaster' component. It is used to display errors and success. In general, my component will show as expected in either case if the message is only to be displayed once. i.e. on a ...
bilpor's user avatar
  • 3,521
0 votes
2 answers
58 views

Injecting DbContext and Repository into class library service constructor

I'm getting an error using DI in a service located in a different class library to my main blazor application. System.InvalidOperationException: No service for type 'Services.SomeService' has been ...
Derek Mitchell's user avatar
0 votes
0 answers
23 views

Is blazor `dotnet publish` hard-coded to `web.config` and the `wwwroot` folder for WebAssembly standalone deployment or am i missing out on the docs?

Yes, I see that dotnet publish has an --output parameter but the conventional wwwroot directory (with a web.config in a parent directory) will be appended; is there a way to stop this from happening ...
rasx's user avatar
  • 5,298
1 vote
0 answers
28 views

NET8 with Blazor has an error reading 'dotnet.wasm'

I tried to convert my Blazor project from NET7 to NET8 because I'm facing some issues with the integrity check. I installed NET8 RC and Visual Studio 17.8 Preview. My solution consists of the server ...
Enrico's user avatar
  • 3,732
0 votes
0 answers
40 views

Blazor .NET 8 RC 1 How to self publish via VS Code or Visual Studio 2022 Community?

How can I publish my .NET 8 RC 1 blazor app to Azure Web App Service? with Visual Studio it says current version does not support targetting .net 8.0? And with VS Code, I can publish but then see ...
DataWrangler1980's user avatar
0 votes
0 answers
31 views

Is there a common identity platform to use both in .NET Framework 4.8 and Blazor (.NET Core 7)?

Currently I have quite an extensive web application written in ASP.NET Web Forms (.NET Framework 4.8) which uses the 'old school' ASP.NET Membership Provider. I am rewriting this application in Blazor ...
Stroomtang's user avatar
0 votes
0 answers
14 views

blazorserver.js and some other static files not loading in localization

I am working on a blazor server app on .net 6 and in that I have implemented localization from the microsoft documentation here. Also added mudblazor for UI Project Structure Program.js localization ...
Divyanshu Joshi's user avatar
0 votes
0 answers
40 views

Failed integrity metadata check for Blazor application (NET7)

I have a project in NET7 and Blazor hosted in an ASP.NET Core web application. The website is hosted on a service provider. When I deploy the application on the server in a hosting provider, I check ...
Enrico's user avatar
  • 3,732
-1 votes
0 answers
44 views

Authorize view doesn't work blazor webassembly

Here is my code: <AuthorizeView Roles="@(Constantes.Role_Administrateur)"> <Authorized> <p>Vous êtes un admin!</p> </Authorized> </...
mathdx's user avatar
  • 53
1 vote
0 answers
28 views

shared window in blazor ssr

how can I implement a way to render same details for two different user! assuming I have a one customer that need to give help from our support team to learn about application or solving problems now ...
Sajjad Arash's user avatar
0 votes
0 answers
30 views

In blazor render an exception does not go to <ErrorContent>

In the page rendering it is throwing an exception. I expected that to be caught and displayed. But it isn't. I have App.razor as: <CascadingAuthenticationState> <Router AppAssembly="@...
David Thielen's user avatar
-1 votes
2 answers
43 views

How to clear all the sessions using ProtectedSessionStorage in blazor server app?

I am utilizing a Blazor server application in which I have utilized the ProtectedSessionStorage key pair method to store sessions. However, I am facing an issue when it comes to deleting or clearing ...
P.Parikh's user avatar
0 votes
0 answers
22 views

Streaming from Blazor Wasm is not working expectedly

I have created API Endpoint that streams JSON and deployed it to the Azure App Service. Tested with Curl command from Command Prompt and received stream data correctly one by one after every 5 seconds....
Sayed Ahmad's user avatar
0 votes
0 answers
31 views

PostgreSQL High load of notifications handling mechanism at application level (.NET Core Blazor)

I have a table in PostgreSQL, on this table I have implemented a pg_notify , so for every row which inserts in this table generates a notification (new row ID), on my .NET Blazor Server application I ...
Zohair's user avatar
  • 51
0 votes
2 answers
54 views

Blazor Server EF Core: Related data (one-to-many relationship) does not save

SalesItemNecessities are created when adding an new Activity. However, the SalesItemNecessities do not get updated when updating the parent Activity. Anyone any tips? I have two models: public class ...
Jeremy's user avatar
  • 62
0 votes
1 answer
35 views

Is there a way to do a "global inject" - i.e. inject the same set of services into every component class?

I found myself injecting the same services into most of the components and retyping or copy-pasting a number of service inject declaration inside the classes that feels like a waste of time. Is there ...
Stan Yurynets's user avatar
0 votes
0 answers
64 views

Blazor .NET 8 - Not working when published to Azure App Service on Linux with .NET 8

Created a new .NET 8 Blazor app and managed to run it locally. Then created a new Web App with service on Linux, selected .Net 8 LTS. However, application errors when running the published website, ...
DataWrangler1980's user avatar
0 votes
0 answers
17 views

Error: No ack for postMessage getDelegateOverrides() in PayPal buttons Blazor WASM

I'm using PayPal buttons with JavaScript SDK in my Blazor WASM project. The button loads perfectly on Firefox but not in Chrome and gives this error on the console : Console error Of the two buttons, ...
Swati 's user avatar
0 votes
0 answers
22 views

Paypal Integration Issue with Chrome browser (No ack for post Message getdelegateoverride)

I was trying to integrate paypal javascript sdk with blazor WASM. It is working fine with firefox but getting this error while runnning on Chrome (Paypal popup window to sign-in) Network: Network info ...
900000000's user avatar
0 votes
1 answer
39 views

How to fix multi line header on scroll in blazor

In mudtable i have two line of header on scroll need to fix the both header currently second header fixed and first header is scrolling up. <MudTable Height="200px" CustomHeader="...
mady's user avatar
  • 1
0 votes
1 answer
60 views

How to use onmouseenter with Blazor?

neither <img onmouseenter="@ClickTest()"> nor <img @onmouseenter="ClickTest"> works. where the called function is this: void ClickTest() { Console....
weird's user avatar
  • 1
1 vote
0 answers
77 views

How to load external RCL components bundled css files?

I am building a Hybrid Blazor app using WinForms and have a number of RCL files which are not referenced as part of the main project. They are loaded dynamically and instantiated using ...
Anil's user avatar
  • 19
0 votes
0 answers
47 views

Does .NET 7 MAUI Blazor Windows App work with Native AOT?

I am currently developing an app with Avalonia on .NET 7 and I was curious to see if I could move to MAUI Blazor as it'd improve my productivity. I do not plan to release the app on anything but ...
S.Richmond's user avatar
  • 11.4k
0 votes
0 answers
49 views

appsettings.json file is accessible when publishing Blazor WASM app

I have a Blazor WASM app and I have a sensitive data in appsettings.json Problem is that when publishing the Blazor WASM app , the appsettings.json file is accessible for the clients to download and ...
Omar Afify's user avatar
0 votes
1 answer
62 views

c# entity framework - blazor application - ChangeTracker

I'm using the entity framework in a blazor application. My context is scoped. I have a tracked entity with a modified property but I cancel the modification. This entity is still tracked and the ...
Chardeux's user avatar
0 votes
1 answer
46 views

Need information about the parent of a child component for conditional rendering in Blazor

So, I have two projects, say ParentA and ParentB. I need to load a modal that shows different text when loaded in ParentA project and a different text when loaded from ParentB. The modal is present in ...
Harshal Bhoir's user avatar
1 vote
0 answers
24 views

IIIS Output Caching for Blazor Server Self Contained

I'm hosting a Blazor Server app (Self contained publish/deployment mode) in IIS 10. I'm familiar with setting up Output Caching for older ASP.net projects, and would like to use it to cache static ...
AlexVPerl's user avatar
  • 7,702
1 vote
1 answer
19 views

Blazor Server with Apache reverse proxy subdirectory - WebSockets not working

I'm trying to run the standard Blazer Server demo (counter) in the following scenario: Containerized (Docker) Running on Debian 12 Running behind an Apache reverse proxy in a virtual subdirectory ...
Klaus P.'s user avatar
0 votes
1 answer
34 views

create a Setup Wizard to Blazor Desktop App

How do I create .exe installer for my blazor windows app? I developed one application using blazor for windows with .NET, but I couldn't create an installer to configure location where it will be ...
JoaoPauloFT's user avatar
0 votes
1 answer
50 views

Blazor App Razor Pages Routing With parameters

trying to Use hyperlink column and performing routing on click UriHelper.NavigateTo($"{ Employee.Link}/{Employee.EmployeeID.ToString()}/{Employee.Name}/{ Employee.Title}"); Not sure what to ...
Gillian's user avatar
  • 37
0 votes
1 answer
29 views

blazor: having the same component multiple times on the same page but with different results. how to retrieve in parent component?

I my parent component I am doing this: <TextArea/> <TextArea/> <TextArea/> TextArea itself looks like this: @inject IJSRuntime JsRuntime @inject NavigationManager NavManager <...
innom's user avatar
  • 810
1 vote
0 answers
53 views

Strange behavior with chartjs when starting up blazor

I am facing a problem where the global defaults are set properly but the bar chart is not coming up from the bottom as intended. The next thing I ran into is when the page is reloaded sometimes no ...
David's user avatar
  • 11
0 votes
0 answers
54 views

Can't debug in Blazor Webassembly hosted

I have an Blazor Webassembly hosted Project in which I cant debug in the Frontend. The Breakpoints just dont get hit. The project once was a Blazor Server application but was then refactored into an ...
IseySkrr's user avatar
-1 votes
0 answers
19 views

How to use AbpExtensibleDataGrid?

How to use AbpExtensibleDataGrid? I want to use it to create some personalized columns, such as displaying pictures, links, etc. in tables. Are there any relevant documents or examples? enter image ...
kang's user avatar
  • 1

1
2 3 4 5
249