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

Can I set global rendermode "InteractiveServer" and override it to use...

I am migrating a Blazor Server App (.Net 7) to the new Blazor Web App (.Net 8).The project also includes some Razor pages (cshtml) which I now would like to migrate to the new Static Server Rendering...

View Article


Index was out of range in Blazor [duplicate]

When searched for Location that doesn't exist timeZoneAtLocation[0] is [] and is throwing the below errortimez =...

View Article


Interactive Server Side Streaming on Client side project in .Net 8 Blazor

With the 2 projects that is split out in .Net 8 Blazor Web App, if I set a component on the Client project as server side will I be able to call the database, save files to the servers disk. Or are you...

View Article

Newly created Blazor project in Visual Studio won't build

Using Visual Studio 2022 Professional, Version 17.8.6, I just created a new Blazor project and it won't build at all. When trying to build, I get the error:error CS0246: The type or namespace name...

View Article

How to Show Spinner while retrieving data?

I use Blazor and .net 7.I have a Spinner component MyCompanySpinner. I want the spinner will show when a process SetSomething is started and the spinner will hide after the process.Then the data will...

View Article


Blazor layout gets re-created on page navigation?

Whenever I click on a <NavLink> in Blazor (Server and WASM, doesn't matter which) my entire layout gets re-created, not just the @Body/@page component.My understanding is this happens because the...

View Article

Blazor button onclick is not triggering using InteractiveServer rendermode

I have a server assembly page where I just can't get it to invoke the code-behind (the Home page, Contacts component).In the browser console, there are no errors.In the Contacts component, at the top...

View Article

Image may be NSFW.
Clik here to view.

.NET 8 blazor wasm hot reload not working

Context: Visual Studio 2022 v17.9.6, .NET 8 (SDK v8.0.204), Blazor Webassembly Hosted solution.Applying Hot Reload to a non-debugging (CTRL-F5 run) webassembly app ... stopped working. At one time in...

View Article


Why is dialogue service not working in my Blazor application? Any Ideas?

I am trying to make a popup in Blazor using Radzen and I believe this is not working because of dialogue service in the code section. Everything runs properly except when I click the button nothing...

View Article


Image may be NSFW.
Clik here to view.

Installing an RCL nuget package with static css files, gives me 404 when...

I have tried many of different solutions/suggestions found in here, nothing seems to work. It is probably a minor thing, but I just can't see itFor simplicity, I try only focus on ONE css file in the...

View Article

What's the best way to handle session in Blazor (that ISN'T dependent on...

We're using Blazor (Server Side) and .NET 5 for a new solution which requires use of session to eliminate round trips to the DB for the exact same data.We're currently using the recommended...

View Article

401 error when manually typing urls, or refreshing pages after upgrading from...

I have a Hosted Blazor WebAssembly app that was initially written in .net 7. I recently decided to upgrade it to .net 8 and I followed these instructions...

View Article

Extract block to code behind is no longer available in .NET 8 and Visual...

I'm using .NET 8 and Blazor in Visual Studio 2022 and I want to move my C# code to a code behind file. There is supposed to be an option called "Extract block to code behind" if you highlight the code...

View Article


Why can an AsyncEventHandler method return void or Task?

Blazor has a callback AsyncEventHandler struct that is used for declaring events in a component. Here’s a useful discussion about how to get called by the event.I’ve found that the method assigned to...

View Article

Error "The requested operation cannot be performed" on a file in Blazor /...

Blazor .NET Core 8 backend with a C# web assembly frontend.I get an errorThe requested operation cannot be performedon a file with a user-mapped section open, and I then have to do build/clean, and the...

View Article


The ExcelPackage object does not return sheets

I am trying to upload an excel file to a hosted Blazor webassembly application, for which I am using the following code:string path= @"D:\Otros\LibrosExcel\ReferenciasDotación.xls";FileInfo fileInfo =...

View Article

Blazor Server failing with unexpected query parameters

I have a Blazor web app with an index page at the route "/".When accessed through myhost/myapp everything works fine. However, I published the url in a Facebook post and when users tap that link FB...

View Article


onChange event not firing Blazor InputSelect

I have the following Code for an InputSelect <InputSelect class="form-control form-control form-control-sm" placeholder="Role" disabled="@IsReadOnly" @bind-Value="Model.Role"...

View Article

What's the most efficient way to convert a Razor site to a Blazor site? [closed]

I'm working to maintain and build a fairly large site for a collegiate institute. Up to this point, it's been entirely built using razor pages (.cshtml). However, we're working to convert it to Blazor...

View Article

Intermittent issue with AAD Authentication, once in a while freezes on...

Most of cases works well, but once in a while freezes on Checking login state ... message with no error. No login window displayed as the token is in a cookie (previously logged in)It's a standard...

View Article
Browsing all 4839 articles
Browse latest View live


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