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

Image may be NSFW.
Clik here to view.

Blazor cannot find variables in related C# class file

I have upgraded my Blazor project from .NET 6 to .NET 8.After I have the issue, that my Blazor componennt cannot see the variables stored in related CS file:But it is in the related CS file:If I remove...

View Article


Debugging when Blazor CSS Isolation doesn't work

I recently migrated a project originally templated in AspNetCore 7.0 Blazor WASM to AspNetCore 8.0 following Microsoft's guidance. Things work, except when the pages load, the browser can't find the...

View Article


Blazor hybrid LocalStorage consume into CS class file

So this is my razor code file@inject Blazored.LocalStorage.ILocalStorageService localStoragevar test = await localStorage.GetItemAsync<String>("MyKey");And this WORKS.So i need to get the data...

View Article

blazor - bind-value:after passing parameters

this happens before my datagrid entity is changed: Change="@(args => onselectrowpremadeinfo(ProductCareInfo))"usually i would use bind-value:after, but i don't understand how to pass an argument. if...

View Article

Blazor NavLink style with a class in CSS Isolation

I am trying to style NavLink in Blazor with a CSS class that I have in a CSS Isolation file for that razor file. I just do not seem able to make any changes accept with global or inline...

View Article


Custom Blazor component for InputText

I want to simplify my code by wrapping a large chunk of form code into a seperate component.What I did was creating MyInput.razor which holds the following code:<div...

View Article

MudNumericField max decimal length

In Blazor Server net8,I am trying to limit the number of decimal digits the user can input in <MudNumericField>For example if I want to limit it to two(2) decimal digits, then the input field...

View Article

Make URL configurable by reading from appsettings.json file in a blazor page

I have a blazor project and I wanted to make my page URL configurable by reading from appsettings.json file. I have tried the followingLogin.razor page@page "LOGIN_URL"appsettings.json file"LOGIN_URL":...

View Article


How to Apply CSS Width to a Nested Div in a Razor Component Without Modifying...

I am working with a Razor component that generates a nested <div> structure, and I need to apply a width: 100%; style to the outer <div>. However, I cannot modify the component directly,...

View Article


Blazor hybrid cant add migration

Hey i have a blazor hybrid app using sqlite and ef. I am planning to deploy it to android.When i try to add migration i am getting :The specified deps.json...

View Article

EF Core change tracking and Blazor Server

I'm struggling to find a good pattern to work with EF Core and Blazor Server.From my research, the best thing to do is using DI and DbContextFactory. Then wrap every operation in its own...

View Article

CancellationToken in Blazor Pages?

After living under a rock for 2 years employment wise, I am now confronted with Blazor at my new Workplace and have a lot of catch up to do after doing mostly ASP.NET Framework MVC prior to the 2...

View Article

Image may be NSFW.
Clik here to view.

MudBlazor theme colors change on page refresh

I'm building a Blazor WASM app with MudBlazor and I'm using custom themes for light and dark mode.The theme provider is in the MainLayout.razor file:<MudThemeProvider Theme="@_theme"...

View Article


Image may be NSFW.
Clik here to view.

Unable to Debug .NET Blazor MAUI on host Windows machine "This project needs...

OS Name: Microsoft Windows 10 ProOS Version: 10.0.19044 N/A Build 19044Microsoft Visual Studio Community 2022 (64-bit) - CurrentVersion 17.8.0It works ok when debugging on my connected android device,...

View Article

How to properly implement login and token handling from REST endpoint in...

I'm developing a MAUI Blazor application that communicates with a Django REST Framework backend. I'm trying to implement user authentication, but I'm encountering a "Bad Request" error when trying to...

View Article


Image may be NSFW.
Clik here to view.

Blazor Authentication Cookie SendAsync NULL Exeption at...

This is my Program.cs file:using BlazorWebApp.Components;using BlazorWebApp.Services;using BLL_Shared.Models.Configurations;using DAL.Abstractions;using DAL.Implementations;using DAL.Models;using...

View Article

Customize default Account Pages for Blazer Server with Interactivity

I am fairly new to blazor ecosystem and have a requirement to modify the default registration to include role for the user. This could be a simple radio but they want selectable cards.I understand...

View Article


.NET authentication login page

I made Blazor application (.Net 7). Client and server are in different projects. I used ASP.NET Core authentication and IdentityServer4 in project and I scaffold login and register pages in server side...

View Article

Flowbite Datepicker format bug when using "dd.mm.yyyy"– incorrect date after...

I'm using Flowbite's Datepicker in my Blazor project and need the date format as dd.mm.yyyy (day, month, year). Here’s the relevant part of my code:<InputText @bind-Value="Input.End" datepicker...

View Article

Blazor FluentUI: SelectedOptionChanged with enum

I am using FluentUI for Blazor WASM in version 4.10.3 and I have a FluentSelect component that I want to call a function when changed. The default is empty (null), which is fine, but when I call the...

View Article
Browsing all 4031 articles
Browse latest View live


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