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

Async methods transient factory - still getting A second operation was...

OrderItems and OrderTaxLines are ienumerables, to be displayed in grids. there is no, to my knowledge, awaitable functions to get them. I don't see what else could be the problemprotected override...

View Article


FluentEditForm says that there is no data, despite data entered being there

My code, below, is a fluenteditform form. After I submit, it says that the fields still need to be filled out even though I filled them out. What is wrong with my code?@page "/movieform" @using...

View Article


Blazor does not show content after connection resumes after interruption

I have written a web app using Windows Authentication. It uses the new(ish) Blazor Web App template, which means that there is a constant SignalR connection between server and client.I found a scenario...

View Article

Blazor (Server Side) TextArea Fails With Long-ish Strings

I'm writing a Blazor server side application for ETL. I have a form with 8 fields, one of which is a textarea created with <InputTextArea>. This field is used to cut-and-paste the contents of...

View Article

How to import a blazor custom element in another JS application?

I have a blazor server app, with a registered custom element as below code:builder.Services.AddServerSideBlazor(options =>{...

View Article


Displaying the local machine camera feed in a Blazor Web Assembly app

I've distilled my issue down to a boilerplate Blazor Web Assembly app.The project is straight out of the wizard, with the below code added.I've changed the Index.razor page to this:@page "/"@inject...

View Article

Uploads folder in wwwroot doesn't have access to delete a file by the app

I have an Uploads folder in an App Service and uploading is successful.However, when the app tries to delete the uploaded files, it encounters the error:System.IO.IOException: Invalid access to memory...

View Article

Using mediainfo.js in Blazor Webassambly

I am trying to use mediainfo.js in my Blazor Webassambly App.Using JS in this context is new to me, so I am not shure how to deal with this.Calling javascript functions out of my c# code is not the...

View Article


Google ReCaptcha V3 only works on one page of Blazor App

I'm always getting Success: False on my Json response when using Google ReCaptcha v3 on a second page of my blazor app. Do I need 2 seperate sets of keys or something? I tried using different action...

View Article


ASP.NET Core - use UseStatusCodePagesWithReExecute with custom exception...

I'm trying to write some middleware that will intercept a custom exception and update the response status as appropriate. For example, if the exception is a custom NotFoundException, it should update...

View Article

How to force the browser to read a certificate from smartcard

I need to upgrade an ActiveX smartcard authentication in IE to a Blazor web authentication in .NET 5. It is mandatory an Authentication via SmartCard with PIN. I setup identityServer4 as for Configure...

View Article

Blazor: Reference to child page displayed by RenderFragment Body

If I create a Blazor project from the Visual Studio templates, in the MainLayout.razor there is a<article class="content px-4"> @Body</article>part. The @Body is a RenderFragment where all...

View Article

Image may be NSFW.
Clik here to view.

How to check programmatically is application been exeuted via Browser or...

From the .NET 9, the .NET MAUI Blazor Hybrid and Web App"-type project is available.It has the shared code for both Web and native platform.But how to check programmatically is application been run via...

View Article


how to change page direction to RTL in radzen blazor studio app

I have a web application with radzen blazor studio. I added localization to the application. So it added CulturePicker.Razor page and CulturePicker.cs class.This was the CulturePicker.cs...

View Article

Include doesn't get the related entity

It's the first time my "include" doesn't bring back the entity. I don't know what is missingBillings class public Order Order { get; set; } public List<BillingItem>? BillingItems { get; set;...

View Article


blazor conditional formating based on screen size

I made 3 buttons that go on a picture ( right side). When the screen is small, the buttons don't follow the layout, so they go over all the picture.How would i make them either smaller, or preferably,...

View Article

Blazor scoped CSS scopes are not the same as the ones from the HTML elements

I have a blazor page Page.razor and a css file for that page Page.razor.css. These files used to be in Components/Pages but I recently moved them into a subfolder of Pages. Now blazor generates...

View Article


CORS blocks direct access to API from Blazor

I've setup an Aspire solution with a Blazor WebAssembly and an API projects. API runs on https://localhost:7476 and Blazor is served from https://localhost:7077. Generally any API registered with...

View Article

Get Current User in a component

I'm starting a new site with Blazor and Windows Authentication and need to identify the current user viewing the page/component.For a Razor Page, the current user name can be accessed with...

View Article

Blazor: How to Trigger EventCallback on Value Change

So I have an Textinput and I want to bind it to the parent. But I can not invoke the EventCallback from the setter as it is async.My input is this,<MudTextField @bind-Value="@(Code)" Label="Hex"...

View Article
Browsing all 4856 articles
Browse latest View live


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