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

Is there a way to programmatically bind an event to a method in Blazor?

While the normal way of event binding is by using attributes in the markup, I'd like to automatically event bind. This would be great when there is a large number of instances the component. In my case...

View Article


anyway to serve local large video file to html element in .net maui blazor...

To reduce net traffic, these video files are only downloaded from server once and stored in cache dir. Every time playing video is fetched from local storage.<video...

View Article


Hosting .NET 8 Blazor Web App with ASP.NET API

Hey im Building a small Webside atm. For the Frontend i am using the new .NET 8 Blazor Web App with SSR and for the Backend an .NET 8 ASP.NET API. Is it still possible to host the Blazor Web App with...

View Article

Nesting bindable components within components Blazor

Say I have the following scenario:Parent.razor<Child bind-Value=registration />@code{ Registration registration = new(); }Child.razor<InputText class="form-control"...

View Article

BlazorWebView in Maui cannot click anything

When I use a tabbed page layout and call blazor web view pages in my Shared RCL, none of the buttons work in those pages.When I use the normal navigation everything works. Am I calling this...

View Article


MudDataGrid not showing filter options in Blazor app despite Filterable set...

I am using Blazor Web App .NET 8 with the latest MudBlazor service. After setting the Filterable = true, the filter icon is appearing on my table, but when click, nothing is showing up. I am following...

View Article

How to share models between ASP.NET Web API and Blazor applications?

I'm currently in the process of migrating an ASP.NET MVC project to Blazor, and I'm seeking advice on the best approach for sharing data models between my ASP.NET Web API project and the new Blazor...

View Article

blazor.server.js file not found

I created a new ASP.NET Core 3.0 Web application and selected the Model-View-Controller option. I wanted to add Blazor Server side, so I added the below to the Startup.cs...

View Article


Is there a blazor way of simulating a click event on an html element?

I have two elements, an InputFile and a button. And I want to simulate a click on InputFile upon clicking the button. I have it working with Js now but would like to know if there's a blazor way of...

View Article


MudSelect items not displaying

My problem is that MudSelect doesn'T show the items...I have this render mode in my App.razor:<Routes @rendermode="InteractiveServer" />and I can click on the up arrow to up the number of an...

View Article

How can I periodically refresh data on a Blazor - Server Side page from an API?

I have a single page on a Blazor App that I'm looking to have refresh the data every so often.The timer works, I can set a breakpoint and see that the data is updating, but the InvokeAsync calls to...

View Article

Add app name as value to page title in Blazor

I’d like to add a custom value to the page title in my Blazor app.I’m currently using the native <title></title> component which doesn’t pass any values other than each pages name.I’d like...

View Article

Image may be NSFW.
Clik here to view.

Refused to create a worker from 'blob:https://x/6a...293' because it violates...

I have Blazor web assembly application (client + server) and keep Refused to create a worker because it violates the following CSP directive.It works locally but when I'm trying to publish my app and...

View Article


no websocket network activity when debugging a Blazor serverside app locally

I'm working on a Blazor app (.net 8, server side, Visual Studio 2022) and I'm not seeing any WebSocket network activity at all when debugging and running locally in Chrome. The app works ok, it fetches...

View Article

Blazor WASM error referencing Razor Class Library

We have one project that includes both a Razor Class Library and a WASM project. Both are .NET 5.0.We test and demo the RCL using the WASM project which is published regularly and works fine.We have...

View Article


How to configure login redirect uri in Blazor WASM?

When I clicked the login button in development environment, the browser always redirected to production URL (I wanted the development URL). I had two redirect URI in Azure AD. How to configure the...

View Article

Blazor Web app error: Could not read source map for...

Suddenly started getting the following error when I launch my blazor web app. It doesnt give enough to go by or to begin to debug where the issue is coming from. Anyone seen this before?Error...

View Article


How to download a file from stream with Blazor SSR?

It's not clear to me how to download a file from a stream using Blazor SSR.I read the documentation but it seems to consider only the WASM/Server cases, as it uses an @onclick event handler.Is it...

View Article

Blazor - why do anything on the 2nd call to OnInitializedAsync()?

This is a follow-on question to my question Why is OnInitializedAsync() called twice?What I have been doing to date, based on Microsoft's guidance that everything should be requested in the pre-render...

View Article

'staticwebassets.build.json' not found while publishing project after .NET 8...

I recently upgraded the project from .NET 6 to .NET 8. It consists of Blazor web server (host) and Blazor web assembly (client). The application builds and runs successfully in the local environment,...

View Article
Browsing all 3962 articles
Browse latest View live


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