4,801 questions
0
votes
0
answers
16
views
How can I send my refresh tokens vis httponly cookie to standalone blazor WebAssembly?
I've been trying for a couple days to implement refresh tokens into my ASP.NET Core Web API, but to no avail.
I've currently got an ASP.NET Core Web API that allows someone to log in with a username ...
1
vote
0
answers
47
views
Debugging not working with Blazor WASM app served though MVC app when ran through Docker-Compose
I created an ASP.NET Core MVC application that serves up a Blazor WASM application. I then want to Dockerize it and run it with docker-compose so I can run it with some other stuff so the other ...
2
votes
1
answer
52
views
Conditionally rendering HTML in Blazor
If I use an if statement to render a block of HTML in a Blazor WebAssembly app, does it actually get rendered and not displayed if the condition is false?
Something like this:
@if(isSectionVisible)
{
...
0
votes
1
answer
88
views
Blazor virtualization for items with different sizes
Blazor supports virtualization but items need to have same height. For most cases it's okay, but for example for chats where amount of messages can be high and messages have different heights due to ...
-1
votes
3
answers
154
views
Avoiding null warnings in Blazor, default! or required per [Inject] service dependency injection
What is Microsoft's recommended approach to avoid compiler warnings about possible null values when injecting dependencies into Blazor components, What are the technical implications of initializing ...
0
votes
1
answer
34
views
How do I pass a cascading parameter to child content in Blazor WASM
I have the following
ParentItem.razor -
<CascadingValue Value="Name">
@ChildContent
</CascadingValue>
The parent.razor.cs has a public string parameter called Name.
ChildItem....
0
votes
2
answers
107
views
HttpClient in Blazor WebAssembly Standalone
When I create a new Blazor WebAssembly Standalone project, it automatically adds an HttpClient in Program.cs -- see below:
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(...
0
votes
1
answer
52
views
MONO_WASM: WebAssembly resource does not have the expected content type "application/wasm", so falling back to slower ArrayBuffer instantiation
I have a year old standalone WebAssembly application. When I run it from CLI dotnet run I get the warning, when I run it from VS2022 I still get the warning but also get dotnet loaded resources in ...
0
votes
0
answers
48
views
Add a clickable calendar icon in the SfCalendar header without using pseudo-elements
I'm using Syncfusion Blazor SfCalendar in my project:
<SfCalendar TValue="DateTime?"
ID="add-appointment-date-picker"
Value="selectedDate"
...
0
votes
0
answers
31
views
HttpMethod.Post gives an 401 error even though it was supplied with credentials [duplicate]
I am trying to create a post method to create a data that pushes to my DB
this is my service to call my API:
public async Task CreateTest(TestsDto testDto)
{
try
{
var request = new ...
-1
votes
2
answers
81
views
Web app freezes when trying to use Layout in a razor class library from that class library
In a Blazor 9 web app, I have a page in a razor class library and I can navigate to it fine from the main Blazor web app.
However, when I add a Layout component in that class library and try to use it,...
0
votes
1
answer
76
views
Is it possible to use @rendermode="InteractiveAuto" in a .NET 9 Blazor Web App using a single .net project?
I would like to create a Blazor Web App that first renders components using SSR until the Wasm components can be downloaded then future requests should render the Wasm component.
My application seems ...
0
votes
1
answer
140
views
Why does my OnAfterRenderAsync get called 5 times when I call StateHasChanged 5 times
The Blazor docs say this:
If a component calls StateHasChanged five times in a row in a loop, the component only renders once.
Ref: https://learn.microsoft.com/en-us/aspnet/core/blazor/components/...
1
vote
0
answers
61
views
How to configure and distribute an Excel add-in created with Blazor?
I'm creating for my company an Excel add-in using Blazor following the code I found on GitHub.
Also, I have created an account on the Microsoft Development Program (MDP) with my company account.
...
0
votes
0
answers
32
views
Global Error handler for Blazor hybrid render mode
I'm trying to understand if is possible to have one <ErrorBoundary> for my whole .NET 8 Blazor server application. The "rendermode" is not globally set to be "InteractiveServer&...