Category "blazor-server-side"

Blazor Server error aspnetcore-browser-refresh.js:234 WebSocket connection to 'wss://localhost:56871/' failed

Running a Blazor Server app is showing a partially rendered page with a browser console error of: aspnetcore-browser-refresh.js:234 WebSocket connection to 'wss

How to map fetched API data into JSON object for looping

I have the following working code that fetches a JSON data from Azure API: @code { string responseBody; protected override async Task OnInitializedAsync() {

html - how can I copy the phone number from phone book to the website textbox

My users can't copy the phone number from their phone book(mobile phone/clipboard) straight into the html textbox. They usually fix this issue by copying the nu

How to use Form data received from a POST request in Blazor pages?

I have a Blazor page that can receive form-data from a POST request. After this data is received, it will be set to two properties and also rendered onto the pa

is there a better way to add a list of integers containing users id as serialized json string to SQL as one record?

I'm working on a Blazor app that's similar to Facebook groups, I have to make a notification function where users can receive a notification message when someon

How to send data from Child to Parent component in Blazor (when a list is clicked)

I have a simple component like this: @foreach(book in store) { <li @click="@SelectBook(@book.id)"> @book.title <li> <!-- book.id throws error

Should i call StateHasChanged everytime a value is changed

look at this blazor server page: @page "/" <div>@Field1</div> <div>@Field2</div> <button @onclick="OnBtnClick">Btn</button>

.NET 6.0 Blazor Server app: WebSocket connection to 'ws://localhost:60908/BlazorApp1/' failed

When I create a new, clean Blazor .NET 6.0 app and start it (using Visual Studio 2022), I see the following error in the browser console: WebSocket connection t

Blazor Server set multiple default values for select drop down list

I have a Blazor server app (.net 6) page that has a select drop down list, which is set to allow multiple selected items. I need to set default values, when th

Chat Realization with Singleton vs Separate SignalR Hub

I was just wondering why the recommended solution for a Blazor-Server-Chat by Microsoft is initializing a Signal R Hub. Technically, all the C# Code is executed

Blazor Server App JavaScript Libraries Not working (Metronic Template)

I have Blazor Server Side app, where I have added JavaScript and CSS Libraries for Metronic Bootstrap Template. The template is fully loaded when I run the app,

Is it possible to make local HTTP calls in Blazor Server?

We are using Blazor Server for our application. Some of our users have intranet rest web api's in their local environment that is not accesible from outside wor

Blazor Server App - Modular Front-Ends (Micro-frontends)

We are looking for a way to get Blazor Server loading other Blazor Server projects. Our goal is to have a micro-frontend approach, where each micro-app is also

HttpClient timeout on Braintree call in Blazor

I'm deploying my .Net 6, Blazor Server site for the first time on shared hosting. It's all seems to work so far bar two things. In the browser console (Chrome)

Blazor @page route url define with variable

I have a question for Blazor Server Side. I want to @page route url define with variable or property. I can use now with below default method @page "/route-url"

DbContext error when scaffolding Identity in Blazor Server app

I'm learning Blazor Server and have an app with an existing DbContext (EF/MSSQL) for CRUD operations. Now I'd like to implement Identity and for that I'm follow

How to Use Azure Managed Identity as Credential For Debugging Cosmos Database access inside of Blazer Server App?

Background: As described in bullet #4 of my other post I'm trying to follow CDennig's example bicep script to grant my blazor (server) application access to bot

How prevent Blazor EventCallback reset selected item to default value

I have a problem with the return event of a child component on Blazor. I am currently using MudBlazor, I have created a component called BrandSelect which loads

How do I avoid using a client secret or certificate for Blazor Server when using MSAL?

When using Blazor Server and the MSAL library you must provide either a client secret or a client certificate. Here is what a Blazor Server project uses to setu

Ubuntu-OS Compatible Tiff image format to Jpeg image format Convertion (.NET 5)

I want to Convert Tiff file/filestream into Jpeg file/filestream. I am curretly developing a Blazor Server app with .NET 5 in Windows. But my Server is in Ubunt