Questions tagged [blazor-server-side]
Server-side Blazor is a web framework from Microsoft to create single page apps running on the server. Changes to the DOM and events in the browser are communicated via a SignalR connection. Blazor is built on ASP.NET Core.
blazor-server-side
5,125
questions
0
votes
0
answers
10
views
.Net 8 Blazor Web App (server) -> Start with browser language and allow user to change language via dropdown
What I want to achieve
I want my Blazor Web App (server rendering) to start with translations that fit to the browser language but also offer a language selection to the user to change the app ...
-1
votes
0
answers
28
views
How can i select a HTML element with Blazor [closed]
How can I select an HTML element/tag with Blazor attributes (without using @ref)? I didn't find any feature in it, which could help me.
I want something like javascript selector methods or jquery ...
0
votes
1
answer
40
views
How to maintain Authentication State with Blazor 8 Server Interactive
I have a setup a full example project here with a kludge where I have to manually call it to grab the state on every page. The problem is if the user refreshes the page then it will redirect to login ...
0
votes
0
answers
34
views
Azure High Latency on Serving static assets from wwwroot directory from ASP.NET
My company has a blazor server application running on .NET 6.0.
Currently I am transitioning the application from a Windows Server 2019 running on IIS to an Azure Web App Service.
Everything runs fine....
1
vote
2
answers
23
views
Layout Cascading Parameter is null inside pages - Blazor Server
I am trying to pass the layout as a cascaded parameter to the page that uses the layout. The issue I am facing is that the layout cascaded parameter in the page is always null.
Here is the code I am ...
0
votes
1
answer
29
views
Blazor, PeriodicTimer with Async Methods and IDisposable-- is this correct?
Short version: does the following look thread safe to you?
The following pseudocode is simplified from working code. It updates a SQL database entry every 10 seconds, only if a change has been made ...
0
votes
0
answers
40
views
Possible threading issues with using Singleton Service as storage/DB supplement?
Now I know that this question will be a little scarce on details, but this is because I first want to tey to avoid
giving out too much code and info about a company project.
Suffice it to say: I am ...
0
votes
1
answer
32
views
Blazor Entity Framework, .NET 8, DbContext scoped to component lifetime
I am using .NET 8 Blazor (server side) to access a Cosmos database using EF Core 8.
In the generated program.cs, there is the standard call to
builder.Services.AddDbContext<ApplicationDbContext>....
2
votes
1
answer
38
views
How do I find a specific subcomponent?
I have a Blazor server-side app, which simulates a windowing system. This uses the TelerikWindow component. Each child window is a separate component, inheriting from a WindowBase component and ...
0
votes
1
answer
49
views
How can I detect in which Blazor page my LayoutComponentBase is currently rendered?
I have Blazor pages that are structured like so:
Index.razor:
@page "/"
@layout PageTopComponents
<div>
<!-- html stuff here -->
</div>
@code {
// ...
}
Results....
1
vote
1
answer
26
views
Blazor Server .NET 8 HttpContext to get token for id_token
I am trying to upgrade from Blazor Server App from .Net 6 to 8.
This is the code in .Net 6:
_Host.cshtml
var context = HttpContext.Request.HttpContext;
var token = await ...
-1
votes
1
answer
29
views
Frequent 400 Errors in Blazor App on Azure: 'Ms-AspNetCore-Token' Mismatch
I’m encountering frequent 400 status code errors with my Blazor web app deployed in Azure App Service. The app is using interactive render mode as server and interactive location as global, and it's ...
0
votes
2
answers
24
views
Blazor QuickGrid TemplateColumn is giving a compile error
I am newbie with QuickGrid and .Net-8.
I get this error for the Blazor QuickGrid .net-8.
Error (active) CS1061 'DateTime?' does not contain a definition for
'Year' and no accessible extension ...
1
vote
0
answers
64
views
Blazor server bootstrap template doesn't render properly .NET 8
I have an issue after installing the template in my Blazor App.
I have created a WebsiteLayout :
<div class="page">
<header class="reveal_header">
...
0
votes
1
answer
35
views
How to implement a determinate progress bar using the Radzen Progress Bar component
I'm new to Blazor, and I tried implementing Radzen's progress bar but I'm not sure what's the proper way to update the progress of the progress bar in my parent component. I'm also using purely Blazor ...