13 questions
1
vote
2
answers
526
views
Interactivity not working in Blazor Server .NET 9
I need some help. This is the first time I'm building a Blazor app and I've been trying to get an @onclick working on a button in my .NET 9 Blazor Server app and I just can't get it to work.
I've ...
1
vote
1
answer
137
views
Pass parameters from a Component to a Layout in Blazor Web App with (Server) Static Rendering Mode?
I'm using .NET 8 Blazor Web App with static rendering (and some part is WebAssembly Interactive but it's not relevant here I think). In MVC/Razor Pages, a page could pass variables (such as a bool) to ...
0
votes
2
answers
162
views
@rendermode InteractiveServer crashes app when used with HttpContext, but I need both to apply themes
could someone please advise? I encountered an issue when trying to apply user preferences (theme) on the sites using HttpContext or anything authentication-related in Blazor .NET 9.
Everything works ...
0
votes
2
answers
407
views
Daniel Roth discouraging the use of Auto render mode in Blazor App? [closed]
In his interview with Nick Chapsas (https://youtu.be/2uLGXe95kTo?si=uhErSaWoCbe87fl1&t=3552), Daniel Roth mentioned that he sees the auto render-monde as his personal "last resort" mode.
...
0
votes
1
answer
417
views
How can I create a new layout using Blazor Bootstrap?
I want to use Blazor Bootstrap's SideBar.
NewLayout.razor:
@inherits LayoutComponentBase
<div class="bb-page">
<Sidebar2 Href="/"
IconName="...
0
votes
2
answers
274
views
Blazor InteractiveAuto and Best Practices with Lifecycle
We have a Blazor application that is using the newer InteractiveAuto rendering mode. We have started down a path, but have discovered an issue with our pages: none of them can be directly accessed.
...
1
vote
1
answer
408
views
How to read a cookie in razor component with RenderMode="InteractiveServer"? (Blazor Server + Net 8)
I have a Blazor Server app in Net 8.
Authentication: none
Interactive render mode: Server
Interactivity location: Per page/component
I am trying to read a cookie with user logged data in a razor ...
1
vote
1
answer
108
views
Blazor StateObject lost after Navigation to next page
Blazor Server
Blazor Web App
InteractiveServer
.NET 8
builder.Services.AddScoped<NavParams>();
Working Normally:
I have a Blazor Web App with 20 pages.
I use NavParams as a statebag that is ...
1
vote
1
answer
56
views
Blazor MSAL Authentication Lost After Sitting Idle
I have a .Net 8.0 Blazor application that has both a Server project and WASM project.
In our Test Environment, the Blazor app sits in a private vNet with all access directed through Front Door. This ...
0
votes
1
answer
1k
views
Dotnet 8 Blazor Web App Stream Rendering Confuse
As I understand from Microsoft that Streaming rendering allows pages that need to execute long running requests to load quickly via an initial payload of HTML, Once that long running call completes, ...
0
votes
1
answer
140
views
How to Properly Distribute Files in Blazor’s RenderMode.Auto?
I’m working with a Blazor project and using RenderMode.Auto for my components. I understand that this mode initially renders components on the server side and then switches to client-side rendering ...
5
votes
1
answer
1k
views
Login page refreshes endlessly when a Render Mode is applied to the entire application
I'm upgrading my Blazor application from .NET 7 to .NET 8 and adding Login/Logout functionality using the Identity code from the sample Blazor Web App project in Visual Studio. My problem is that I ...
3
votes
2
answers
394
views
Why won't my Add button call my function?
I am making a website for recipes where users can upload their own recipes. I am struggling with my CreateRecipe page. I want the user to enter an ingredient name, ingredient quantity, and the unit of ...