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
0votes
0answers
14views

What are the Parameters of Datagrid in Microsoft Fluent UI

I'm using the Microsoft Fluent UI library for Blazor. Basically what I'm trying to achieve is display data using the Datagrid component which is FluentDataGrid from Microsoft.Fast.Components.FluentUI ...
user avatar
0votes
1answer
51views

Using JS in Blazor

Currently, I'm assessing viability of Blazor for our projects and I want to better understand JavaScript's role in a Blazor project. Microsoft documentation states the following: Only mutate the ...
user avatar
  • 22.2k
0votes
1answer
23views

how to know if ElementReference is present in dom

Is it possible to tell on onAfterRenderAsync if a certain ElementReference is present in the DOM (rendered) ? I have something like this: @if (condition) { <input @ref="elem1" /> } ...
user avatar
  • 184
-1votes
0answers
18views

many to many relationship update data server 6 code

I am trying to convert the code in this link to blazer server 6 code. I am having problems with these elements. @model, NotFound, ModelState, IActionResult. StudioExists I'm thinking is a method that ...
user avatar
  • 21
0votes
0answers
11views

Errors when add "Razor Class Library" reference to .NET6 Blazor Webassembly

I have a new" blazor webassembly" and a "Razor Class Library" for components. But I get an the following error. I don't know what is meant by the warning and error since I can't ...
user avatar
-3votes
0answers
31views

How do I add a razor component to a list in c#

Razor Components My class and list I want to keep my razor components in a list like in the image, and then show them in a drop zone. Is this possible?
user avatar
0votes
0answers
13views

WCF "target principal name is incorrect" in Blazor Server app

I'm trying call a WCF service (AX 2012) from my blazor app. I've added the reference under connected services (Visual Studio 2019) and the code generation worked. But when I call it the same way as in ...
user avatar
  • 1,756
0votes
2answers
57views

Set RenderFragment default content in code behind

I have the following code from an article that is placed inside a .razor file. How can the wig-pig code part be converted to a code behind .razor.cs file? [Parameter] public RenderFragment<TItem>...
user avatar
  • 93
0votes
0answers
30views

Blazor server template throws exception on "Cannot find the fallback endpoint specified by route values: { page: /_Host, area: }"

I started to learn blazor with Linkedin and as I start a new blazor server project, based on VS22 (.net6), it throws me the following: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware:...
user avatar
2votes
2answers
268views

Blazor data-binding of input range doesn't seem to work properly with floating point step

I have a slider, which the user should use to set a percentage threshold value. The following code snipped works fine: <span class="label label-default">Detection Threshold: @...
user avatar
1vote
1answer
37views

Blazor StateHasChanged() doesnt update global class values on page

So im trying to implement a multi-site server-side blazor application that has two services implemented as singletons like this: services.AddSingleton<MQTTService>(); ...
user avatar
  • 13
1vote
1answer
29views

Blazor not providing individual sessions. How to fix?

I have a Blazor Server app hosted on an Azure App Service, which communicates to an on-premises server connected through a VNET on Azure. I have custom authentication in place where a user will use ...
user avatar
  • 75
0votes
0answers
29views

Blazor Modal declaration throws CS8625 upon compilation

I'm utilizing the Blazorise Modal feature (as seen here). I'm following the documentation via the following code: <Modal @ref="ModalRef1"> <ModalContent Centered> <...
user avatar
0votes
1answer
24views

Blazor Server, ZXing barcode scanner - The current thread is not associated with the Dispatcher. How to correct?

I have a Blazor server application and have been trying to get the ZXing barcode scanner to work. I can successfully scan over and over when debugging locally. But when I try to scan after publishing ...
user avatar
  • 75
0votes
1answer
26views

ASP.NET Healthchecks Not Working on Blazor App Deployment

I have built a Blazor server app and deployed it on IIS. All of its core functionality is running as expected aside from the healthchecks. When I run the Blazor app via visual studio, I get the ...
user avatar
  • 25
0votes
1answer
33views

How to add attribute on each blazor component automatically by rule?

For testing purpouses I want to have custom attribute on each, for example, button each page of my app without any manual adding. Let's say I have page: @page "/mypage" <h1>This is ...
user avatar
  • 206
1vote
1answer
22views

Am I using KubernetesClient correctly with Blazor to list objects asynchronously?

TL/DR: I don't know if I'm using the asynchronous programming features of C# and Blazor correctly. Even though things technically work, I'd like some guidance if I'm doing things correctly. Also, I'm ...
user avatar
1vote
0answers
20views

C# reverse proxy via websocket / SignalR

I have one public facing ASPNETCORE server. Then I have multiple small blazor-server applications running on multiple machines in customers infrastructure (behind firewall etc). It must be possible, ...
user avatar
  • 236
0votes
1answer
25views

What event handler fires on resize of a client side Blazor page?

I don't want to implement my logic in OnInitializedAsync, which happens on initial load. This should happen after the initial load and when user start resizing the browser window. Thanks.
user avatar
0votes
1answer
44views

Blazored LocalStorage - what am i doing wrong?

im learning blazor still - wanted to add something so simple popular Blazored LocalStorage but have some basic trouble / question code is: using Microsoft.AspNetCore.Components.Authorization; using ...
user avatar
  • 353
0votes
1answer
50views

BLAZOR, ASPCORE 5 and AzureAPP: has been blocked by CORS policy

I have a problem and i dont know how to solve. I use blazor, with AzureAD and azure Service ( I can loggin) but the problem is to access the data of the database that is in azureBD. I dont know why ...
user avatar
0votes
0answers
24views

.NET MAUI Hot Reload Bug With Blazor

I have created my first MAUI app with Blazor from the template supplied in VS2002 Preview. I have not changed anything but when I run on the Windows machine and I change the index page and save (just ...
user avatar
  • 1,741
0votes
2answers
29views

Blazor: Get values from multiple inputs on change event

Is there a way to get the values from multiple selects in the same event? I want to have two selects as filters and allow either to filter the jobs that are returned. What I don't know how to do is ...
user avatar
0votes
0answers
12views

How to add connected services on a class library?

By default, a Class Library project is not set up to add a connected service. Is it possible to move our connected services from a Blazor application to a class library? How?
user avatar
  • 19.3k
0votes
1answer
47views

Web BLE secure connection with pairing type 'Just Works'

I have a BLE device that I wish to connect to through Web Bluetooth. The BLE device's Characteristic is set up to only return values when requested over a secure connection, the bluetooth pairing type ...
user avatar
  • 29
0votes
0answers
18views

Blazor Masonry ( Pinterest ) grid

I would like to know if there are any UI components for Blazor so that you can build a photo grid like in Pinterest without using the Masonry library (https://masonry.desandro.com/) ? Or is there ...
0votes
1answer
42views

how to send 2 parameters to method in blazor

I have an AutoComplete control and I need to send a parameter plus the ValueChange method <BlazoredTypeahead SearchMethod="searchProvedores" ...
user avatar
0votes
0answers
25views

SelectedValuesChanged with @bind-SelectedValues

Is it possible to do it? I'm currently trying to get a popup to show when something is selected in MudBlazor. But when i try to call the function, with the selectedvalues it never hits it.enter code ...
user avatar
  • 1
0votes
1answer
13views

How to edit the New row template in Blazorise.Datagrid?

I am trying out Blazorise datagrid to display rows and add new rows. I would like to customize the Salary field such that there is a + button on the new row form. This + button will retrieve the ...
user avatar
  • 486
0votes
2answers
17views

Blazor Server-side app Android and IOS mode

I am building a Server-side Blazor web application on localhost for now. I want to test my web app on android and IOS devices but I cannot seem to find the solution. I have tried connecting to the ...
user avatar
-1votes
0answers
33views

I need to validate 2 different text boxes with 2 different buttons In blazor

<div class="row"> <label>TEXT BOX 1</LABEL> <SfTextBox @ref=@Login_Id ValidateOnInput="true" @bind-Value="@m1.Login_User" Placeholder="...
user avatar
1vote
2answers
83views

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://localhost:56871/' failed It would ...
user avatar
  • 163
0votes
1answer
38views

Bootstrap tooltip HTML with font awesome icons on <i> anchor tag not working on focus

I have the following HTML, it is working as expected (when hovering to the "!" symbol, the tooltip appears), however as because one of them have the link inside the tooltip, I would like it ...
user avatar
0votes
3answers
83views

Why do i need to call StateHasChanged if the method contains an await call

Look at this code (blazor server page): @page "/" <div>@str</div> <button @onclick="eventArgs => { OnClick(); }">Hello</button> @code { private ...
user avatar
  • 6,573
0votes
0answers
37views

Problem converting Image to Base64 in Blazor Server

So I am trying to convert an image base64 that will be uploaded to SQL Server. Current code is: private async Task OnInputFileChange(InputFileChangeEventArgs args) { var maxFiles = 1; var ...
user avatar
  • 21
0votes
1answer
29views

Can I use the Virtualize component with multiple items per row?

I tried to <Virtualize> a list of a thousand items showing several per row, with display: inline-block. The result in Blazor kinda works, but seems to always leave the last row with the same ...
user avatar
0votes
0answers
17views

Blazor Cascading Parameter - Using a class to store the values not update the parent reference [duplicate]

I'm starting with Blazor, checking a simple example of how to implement Cascading Parameters. I'm trying to use a class and send it as Cascading parameter, the class has two params and one method to ...
user avatar
  • 1,745
0votes
1answer
31views

How to fire ValidateOninput for blazor component Text box

This I My common Razor Component [CommomTextBoxComponent.razor] <SfTextBox Placeholder="@Placeholder" @bind-Value="@BindingValue" Type="@InputType" ValidateOnInput=&...
user avatar
0votes
1answer
26views

Assigning multiple image paths to show thumbnail in blazor

I have a modal that is supposed to take multiple image file inputs that are categorized by zones. <div class="modal" tabindex="-1" role="dialog" id="...
user avatar
  • 189
1vote
1answer
77views

browserLink error when run Blazor server side project

When I run and change ervitoment dev to stag in Blazor server side that time face below error. browserLink:77 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'href') Please ...
user avatar
0votes
0answers
32views

What is this page unresponsive error in Blazor WASM?

I am developing an industry-level blazor application in .NET 6. currently, it is not a simple application, because It has several assemblies and each assembly has a considerable amount of razor files ...
user avatar
0votes
0answers
23views

How to retain local storage values when we click cancel button in onbeforeunload ( Page refresh/closing tab)

This is the code for preventing page refresh/close tab, when clicking cancel button in dialog box local storage values are clearing. how to retain local storage values ? window.addEventListner('...
user avatar
0votes
1answer
42views

What is the difference between CurrentValue and Value properties inside the Blazor's InputBase<T>?

Looking at Microsoft documentation here it states the following: CurrentValue -> Gets or sets the current value of the input. Value -> Gets or sets the value of the input. This should be used ...
user avatar
  • 11.6k
0votes
0answers
24views

Blazor External Dll not added to WASM [duplicate]

With Dotnet's Blazor opening up a number of possibilities I wanted to give it a shot working with Web Assembly and ImGui's C++ library (an easy and convent GUI library). There is a DotNet wrapper that ...
user avatar
0votes
0answers
26views

How to add blazor component loaded to page from jquery and ajax call

I have a new ASP .NET Razor pages app that I've configured for Blazor. In the program.cs I've added builder.Services.AddServerSideBlazor(); ... app.MapBlazorHub(); In the Layout I've added: <...
user avatar
1vote
0answers
22views

How to plot the 10^30 as the point of X axis in Logarithmic chart by using Plotly.Blazor

I want to create a graph with the logarithmic x-axis and scatter y-axis using Plotly.Blazor NuGet. The x-axis range is 10^0 to 10^100 and the step size is 10^10. I have to plot 10 points with x-axis ...
user avatar
0votes
1answer
59views

Is there a way in Blazor to prompt the user to browse to a local folder and select it for downloading a file?

The user needs to be able to upload a bunch of images which my app will merge into a single PDF. Then the user needs to be able to save that PDF to their local machine. My Blazor C# application uses &...
user avatar
  • 165
0votes
2answers
52views

adding icons to a radio group in Blazor

I would like to have a mixture of icons and texts in options in a radio group just like: My code is like: .rm-input-radio-group { display: flex; flex-direction: row; height: 100px; } ...
user avatar
0votes
1answer
20views

New help saving data in Mudblazor dialog

Here's my code: @inject IThemeService ThemeService @inject ISnackbar Snackbar <MudDialog Style="min-width: 500px;"> <TitleContent> <MudText Typo="Typo.h6&...
user avatar
  • 1,071
0votes
0answers
34views

Blazor NSwag Newtonsoft.Json to System.Text.Json

I am using the following code to generate a C# Client API for my Blazor WebAssembly project. using (HttpResponseMessage response = client.GetAsync("https://localhost:5001/swagger/v1/swagger.json&...
user avatar
  • 161

15 30 50 per page
1
2 3 4 5
162