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

User deleting personal data DeleteAccount() in Blazor and Microsoft Identity...

Alright, I’m pretty lost here, and the internet isn’t much help — there are so many posts about this, but everyone seems to have their own version of the code. I’m just a hobby programmer working with...

View Article


How to add alternate background style to odd rows?

I'm trying add alternate background style to odd rows in Blazor Fluent Gridit seams that it is not possible out of the box, so I tried with some CSS like.fluent-data-grid tbody tr:nth-child(odd) {...

View Article


Why did my Blazor EventCallback stopped working

This might be my own stupidity, but I have been struggling with this problem for the last day or so and I am not sure how to troubleshoot it anymore.Short VersionI have the following Code in...

View Article

Image may be NSFW.
Clik here to view.

In Blazor Fluent Grid, how to add alternate background style to odd rows?

I'm trying add alternate background style to odd rows in Blazor Fluent Gridit seams that it is not possible out of the box, so I tried with some CSS like.fluent-data-grid tbody tr:nth-child(odd) {...

View Article

Blazor Web App (.net 9) "No authenticationScheme was specified"

I added @attribute [Authorize (Roles="Administrator")] in test.razor component, Non Administrator role error when logging in.Error Info:An unhandled exception occurred while processing the...

View Article


Blazor.Bootstrap _content folder not created at buildtime

I'm building a Blazor Server app (.NET 8), and I'm trying to use the Blazor.Bootstrap (3.3.1) components, but somehow the _content folder is not generated - there is a _framework. So at runtime I get a...

View Article

Blazor site does not open inside iframe [closed]

I need my website to open inside the No-IP iframe, I'm using the no-ip masked port redirection, so they open the website in their iframe, but it doesn't open, does anyone know how to solve this?I was...

View Article

Blazor server side, sending 302 IDP redirect for XHR, negotiate calls and...

How do we stop our blazor to send oauth 302 redirect for xhr calls, which will never be processed at browser.Problem is that before sending 302 redirect it created nonce and correlation cookies, which...

View Article


Trouble accessing hidden XML download link on Blazor-based government site

I'm trying to access an XML file download from a government website:https://nfs.nacta.gov.pkThe site is built with Blazor, and when I select the XML format option, it triggers a background request to a...

View Article


Blazor CascadingParameter is always null

New to Blazor, having trouble getting a CascadingParameter to populate from my MainLayout.razor:@code{ private Toasts Toasts { get; set; }}<Toasts @ref="@Toasts" /><CascadingValue...

View Article

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 =...

View Article

How to prevent confirmation dialog from showing during OnInitializedAsync in...

I'm using an EditContext to track changes in a form, and I show a confirmation dialog using ConfirmAsync() if there are unsaved changes when navigating away.The logic below is implemented in a...

View Article

Image may be NSFW.
Clik here to view.

NET MAUI Application Display Version value incorrect

I am using my NET MAUI project properties > MAUI Shared > General > Application Display Version to set app version (example below):However, when I call:AppInfo.Current.Version.ToString()On my...

View Article


SerializationNotSupportedType when serializing ImmutableHashSet even when...

I have a Blazor app that serialize JSON to send back to the API server like this: public HttpRequestMessage CreateWithBody<T>(string path, HttpMethod method, T body) { var req = Create(path,...

View Article

Upload file using signedurl and htmx put request

It uploads the file to minio container, but it says the file format is not supported. When using postman the file upload works and is viewable.<form id="uploadForm" hx-put="@Model.signedUrl"...

View Article


.NET 9 Aspire BFF with Blazor and SignalR

I have an API in my Aspire app that maps a SignalR endpoint /messageHub. I have a Blazor web app (InteractiveAuto) that uses a SignalR client to connect to my hub from a razor component page:var url =...

View Article

Blazor Wasm 401 when directly accessing url

I have a Blazor Wasm application with custom authentication in .net 8.The authentication works fine when I follow a navlink but if I enter the url of the page directly then it throws a 401 error. It...

View Article


Incorrect Code Formatting for Blazor/Razor Files in JetBrains Rider After...

I recently upgraded JetBrains Rider (from 2023.3.6 to 2024.3.5), and now my Blazor/Razor (.razor) files are incorrectly formatted when I use the built-in code formatter (Ctrl+Alt+L / ⌘+⌥+L on macOS)....

View Article

'HttpNavigationManager' not initialized when rendering static HTML

I'm trying to generate HTML to a string from a Razor component. I use the following code to do that:var html = await _htmlRenderer.Dispatcher.InvokeAsync(async () => { var pv =...

View Article

Blazor/Razor auto formatting identation in Visual Studio

I'd like to customize the way Visual Studio auto formats Blazor/Razor components.Usually, it formats wrapped tags like this:<SomeComponentWithSomeRandomName @bind-Checked="@this.YesConfirmIt"...

View Article
Browsing all 4275 articles
Browse latest View live


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