Skip to main content
The 2024 Developer Survey results are live! See the results

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
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 ...
rekcul's user avatar
  • 329
-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 ...
Developer of World's user avatar
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 ...
Greg Finzer's user avatar
  • 6,924
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....
vinicius Leite Pereira's user avatar
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 ...
Ahmed H. Sharafeldin's user avatar
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 ...
Bennyboy1973's user avatar
  • 4,058
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 ...
SMSTJ's user avatar
  • 664
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>....
AndyW's user avatar
  • 421
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 ...
Avrohom Yisroel's user avatar
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....
Brian's user avatar
  • 1,909
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 ...
Geoffrey's user avatar
-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 ...
Bharat Ram's user avatar
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 ...
John D's user avatar
  • 583
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"> ...
Bako Gdaniec's user avatar
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 ...
javaman's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
342