15,877 questions
-1
votes
0
answers
48
views
Why can PropertyColumns not infer their type parameters when passed to a wrapper? [duplicate]
I am using MudBlazor's MudDataGrid, which functions very similarly to Blazor's QuickGrid. The grid's contents are determined by a RenderFragment parameter called Columns, which contains a list of ...
0
votes
1
answer
61
views
Why doesn't cookie authentication work in my Blazor .NET 8 app?
I've been having trouble trying to set up simple authentication/authorization for my web app. Currently I have auth page
@page "/auth"
@rendermode InteractiveServer
@using System.Text....
0
votes
1
answer
95
views
Implementing platform specific override method of custom client
I'm creating a custom API client to be used by my web (Blazor WebAssembly Standalone) and mobile (.NET MAUI) apps for connecting to my API. I have two questions below but first, here's an abbreviated ...
Tooling
1
vote
1
replies
27
views
Set global CSS breakpoints in Blazor
I would like to set the CSS breakpoints globally in Blazor. What are some approaches? I prefer something that keeps the code or additional libraries quite simple.
1
vote
0
answers
33
views
How to add Authorization: Bearer <token> header to Strawberry Shake client after login in Blazor Server?
I'm using Blazor Server with Strawberry Shake 15.1.10.0 to consume a GraphQL API.
Here's the flow:
User logs in via a regular API call (SignInAsync(username, password))
The API returns a JWT token (...
1
vote
0
answers
44
views
Blazor persistentstate allowupdates
@page "/weather"
@rendermode InteractiveServer
@inject CustomUserService UserService
<PageTitle>Weather</PageTitle>
<h1>Weather</h1>
<p>This component ...
1
vote
1
answer
67
views
MudTabs throws ArgumentOutOfRangeException when loading page with query parameter
I want to set the active panel index based on a query parameter value
Problem Description
When navigating to a Blazor page containing MudTabs with a query parameter specifying the active tab index (e....
0
votes
0
answers
62
views
Set HttpContext Response Cookie in Blazor without API
Issue with Auth princliples not being able to write to response in blazor app through an injected service
LoginModal:
@using Microsoft.AspNetCore.Components.Authorization
@using MtgDeckBuilderServices
...
0
votes
0
answers
34
views
How to make Blazor Web App partly run code as WASM
I'm trying to create a register account page in Blazor Web App. I need the form submission callback to run on the client as it needs to set the authentication cookie, but I can't manage to achieve ...
1
vote
3
answers
110
views
Can I "soft reload" a Blazor page component without a full browser reload?
I'd like to reload a Blazor page component without triggering a full browser reload.
Using NavigationManager to reload works, but I'm looking for a softer approach:
The page itself stays loaded, so ...
Best practices
0
votes
0
replies
30
views
Aspire .NET 9 Blazor Project: InteractiveAuto Globally
I have a question with a setup of one of my components that relies heavily on JSInterop. The component contains a Google map and all of my data for initializing and displaying data on that map needs ...
3
votes
1
answer
67
views
How to close a popup instead of navigating back when swiping or pressing back? [closed]
I’m building a .NET MAUI Blazor Hybrid app, and I want to handle back navigation (both swipe gestures and the hardware/software back button).
Here’s what I need:
If the user swipes back (like iOS ...
Advice
1
vote
5
replies
88
views
How to align a byte array transferred from Blazor to Typescript via interop to a multiple of 2 bytes?
[EDIT] Updated this question with actual working code.
(Note: This discussion talks about the way that the array interop works, which might be relevant.)
I'm trying to transfer an array of shorts to ...
0
votes
0
answers
70
views
invalid username/password logon denied using Oracle.ManagedDataAccess in Blazor Server App
I have Oracle XE running in a container, in which I can connect using the command:
podman exec -it oracle-container_oracle-db_1 sqlplus sap/sap@//localhost:1521/xepdb1
or simply (without specifying ...
1
vote
1
answer
37
views
How to configure a Blazor InteractiveServer application with SignalR using Kestrel and ClientCertificateMode.RequireCertificate?
Thank you all in advance for productive feedback and ideas to help resolve this.
Problem:
Blazor w/SignalR hub and Client Certificate required throws exception on connection attempt.
My project is a ....
2
votes
1
answer
71
views
In my Blazor SSR app., my service method is failing when calling an Azure HTTP trigger
In my PayPalService.cs file, I have a public method in the class that calls an Azure HTTP triggered method in PayPalFunctions.cs file that keeps failing due to an error: "Method not Allowed"....
0
votes
1
answer
72
views
How can I support multiple OIDC authentication providers?
I have built a Blazor standalone webassembly in .NET 9 for a new application that we are building in our company and have successfully integrated it into our Okta system for authentication of the user....
0
votes
0
answers
53
views
Mobile Button does not trigger
Basically I'm developing a website/app with Blazor where I have 2 layouts - one is a topbar that I use on the homepage.
On desktop, this layout works perfectly however on mobile the toggle does not ...
-3
votes
1
answer
77
views
Error with onblur, There is no argument given that corresponds to the required parameter 'e' [closed]
I get the error,
There is no argument given that corresponds to the required parameter
'e' of 'AddContributor.OnPayerIdChangedAsync(ChangeEventArgs)'
This is the pertinent area of blazor markup:
<...
0
votes
2
answers
57
views
Having Problems Two Way Binding In Blazor Custom Control
So i have 2 date boxes on a pop up and the second date box is linked to the first where when you select a date in the first the second will show a date 1 month in the future then you can up a ...
0
votes
0
answers
93
views
Adding Authorization Middleware to Blazor App causes errors when hosted in IIS
I have a Blazor Server app that requires users to sign in with a Microsoft account (within my company's tenant). I'm trying to further secure it by only allowing users who meet a certain criteria, but ...
0
votes
0
answers
38
views
Blazor JSinterop invokeMethodAsync on blur event is affecting js component behavior
I've modified a Blazor-JS component based on QuillJs to enable two-way binding from the text editor to blazor/c# property
I've done this by adding a 'blur' event listener and invoking a method c# ...
2
votes
0
answers
128
views
Enable hot reload in a Blazor project
Hot reload doesn't work in Blazor project in Visual Studio 2022.
If I set a breakpoint and edit code then I get a message:
The source file has change. It no longer matches the version of the file ...
0
votes
1
answer
56
views
How do I handle empty files in Blazor Server InputFile after cancelling?
I'm coding a Blazor Server Web Application, specifically a form. I'm struggling with an InputSelect field, and I couldn't find any solution to this specific problem.
Here's a basic example I made ...
0
votes
1
answer
53
views
Blazor - Calling @code function from HTML not correctly displaying data
I've built a Blazor application, and I wrote some logic in a for-each loop to display some data. The logic is meant to go something like this: for every job type, display the jobs for that particular ...