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

Image may be NSFW.
Clik here to view.

File Upload Icon changes, is possible to use old one? [DevExpres Blazor]

A recent devexpress blazor resource update has unexpectedly altered the appearance of the file upload icon (DxUpload).I update the version from 23.2.6 to 24.1.5-pre-24217.Before:After:There is a way to...

View Article


Why is my blazor form when empty not coming null [duplicate]

whenever i enter and submit my form empty it doesent come off as null it just recieve it as a " " blank space. this is also one of the reason my validation is not working thus i get empty values in my...

View Article


How to test validation messages are showing in Blazor website?

I'm writing integration tests using WebDriver against a Blazor Web App. How do I test the visibility of validation messages?For example, I have the following form:<form method="post"...

View Article

Can't build Blazor app on Mac OS which works on Windows

I switched from a HP Laptop running Windows 11 to a Mac Book running Sonoma.My Balzor app is saved on a Git Repositroy.On the Windows Laptop I am able to build and run the App without errors.On the new...

View Article

Entity Framework delete by id (SQL and simple way)

I have been looking for deleting rows from a database with Blazor. I have been trying it but been having run into issues that require long code I want to keep it simple for my project.My code:@page...

View Article


String property as [Required] vs non-nullable when defining a class for EF Core

I'm new to Blazor and EF Core and I'm learning about the mapping between C# classes and the database tables created by EF Core.While defining a class in C#, Intellisense will complain if I define a...

View Article

Blazor - using SingalR hub to force refresh all user tabs logs multiple...

I am using SignalR hub to refresh all tabs currently opened by specified user (e.g. after permission change). Hub connection is initialized in the MainLayout component. private async Task InitHub() {...

View Article

Blazor best practice for Non-nullable warnings

With blazor I get Non-nullable warnings all around the code. Those warnings seems to be wrong, however solving them introduces a lot of code with the only purpose to hide the warning while the value...

View Article


EF Core throws ObjectDisposedException for IServiceProvider occasionally

I have a View, which causes an exception occasionally. While retrieving the initial data from the db, sometimes it fails with an ObjectDisposedException for IServiceProvider.We are not using the type...

View Article


Blazor Server: Handle token refresh (Cookie-based authentication)

I am storing my access and refresh tokens inside the HttpContext via HttpContext.StoreTokens(). I can retrieve these in my App.razor and pass them to the rest of the application from there. This works...

View Article

How Authorization with Blazor web app works?

I created a blazor web app auto render mode project with individual accounts, in the PersistingRevalidatingAuthenticationStateProvider it only picks up one role :var role =...

View Article

Implementing SignalR without Redis, and Without Sticky Sessions in Load...

Currently working on a Net 8 Blazor project, and running into a hurdle in a load balanced environment. I don't currently have the ability to implement sticky sessions (or persistence) which is causing...

View Article

Image may be NSFW.
Clik here to view.

How to retrieve optional claims when authenticating in Blazor App

I have set up authentication in Blazor using Microsoft Entra, and it works great. However, I need some more claims and have added three more in Entra:But when I look at the users claims in the code,...

View Article


Authorization not working i ASP .NET Blazor Pages

I'm working on a project in .NET C# with role-based authorization on specific pages, but after logging user in i can't access authorized pages. I also cannot find any cookie files in browser.I've tried...

View Article

Experiencing a data binding issue on a Blazor .NET 8 Web App

@page "/login"@using BlazorWebAppNew.Data@inject IJSRuntime JSRuntime@inject UserDataContext dataContext<PageTitle>Login</PageTitle><div class="container mt-5"><div class="row...

View Article


Image may be NSFW.
Clik here to view.

How to logout using link (HTTP GET) in Blazor and .NET 8?

In the previous version of Blazor I could use:await SignOutManager.SetSignOutState();Navigation.NavigateTo($"authentication/logout");Now, I have to...

View Article

Cannot Open streams (for reading files) in Blazor Server App

I have a Blazor Server app, that's acting as a Teams App. The problem is that I can't read files uploaded through this component:<InputFile class="form-control mb-4" OnChange="@OnInputFileChange"...

View Article


Filestream From Blazor Client to API

I have a Telerik component I am using to collect files for upload to an sftp server.<TelerikUpload @ref="files" AutoUpload="false" Multiple="true" OnUpload="@(Submit)" OnCancel="@(Cancel)"...

View Article

How to render page inside an other page?

Is there an option in blazor to load a page inside an other page. A version of Html.RenderPartial("page");This is what I have in asp.net core<div class="row"><div class="col-md-3"><div...

View Article

How to reference local JS modules in Blazor components?

On Dotnetconf two weeks ago I heard it is now possible to include local Javascript files in Blazor components. That sounds very interesting. I guess the approach is still to use JSIniterop and...

View Article
Browsing all 4839 articles
Browse latest View live


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