blazor-server-side Questions
4
Is it possible to use SignInManager without having some HTTPContext ? I'm making a Blazor server-side app and I need to make end-users signed in using PasswordSignInAsync() method of SignInManager....
Triumphal asked 21/11, 2019 at 11:26
4
In the Blazor (server side) I use AuthenticationStateProvider to set the authentication details in the session and restore it. Everything works perfecly with AuthorizeView but when I want to use Au...
Callosity asked 21/12, 2023 at 15:27
3
Solved
I am new to Blazor with basic Angular and Vue.js experience. I would like to render a list of polymorphic components:
<ul>
@foreach (fruit of fruits)
<li>HOW DO I RENDER FRUIT HERE?...
Retrogression asked 30/9, 2019 at 17:51
3
Solved
I have a server-side blazor app and I need to know it's base url (e.g. https://localhost:1234 or https://my-host.com/appname).
In a traditional ASP.NET web application, I could inspect the Request...
Midwest asked 16/8, 2019 at 7:54
4
Solved
I access the HttpContext in a Blazor server-side view to manually log out. I added this line to Startup.cs: services.AddHttpContextAccessor(); and inject it in the view with @inject IHttpContextAcc...
Homeward asked 29/7, 2019 at 8:22
6
Solved
I have this code on a Blazor Server-Side page:
protected override async Task OnInitializedAsync()
{
try
{
_model = await BudgetReleaseRequestProviderService.GetMeetingById(MeetingId);
var mee...
Visser asked 31/12, 2020 at 10:38
8
Solved
I have installed mudblazor through NuGet and followed the "tutorial" on how to set up mudblazor, I did everything step by step but for some reason the component appears without any css or...
Stearne asked 6/12, 2020 at 16:7
2
There are plenty of mentions to "Blazor circuit" term on the documentation, however I cannot find a definition of the term. I guess it is something like some kind of state associated to the user se...
Vista asked 24/5, 2020 at 6:22
10
Solved
How do I get client information such as IP adress and browser name/version in Blazor server-side?
Cartridge asked 17/9, 2019 at 21:43
11
Solved
I'm trying out Blazor ServerSide and created a Component to Redirect To the Login Page when a user is not logged in.
@inject Microsoft.AspNetCore.Components.NavigationManager NavigationManager;
@...
Bonus asked 24/9, 2019 at 9:7
13
Solved
Using the example from the Microsoft docs, I'm trying to programmatically set the focus to an input element.
Unfortunately, the example uses a standard <input type="text"> whereas I...
Adrianaadriane asked 2/12, 2019 at 11:26
8
Solved
In the Blazer Server Side project with .NET 6, I am on the following page:
https: //localhost: 7252/Product/a3620f82-7cba-473c-9273-1cf300a181eb
I have a NavLink on this page that points to the exa...
Antidisestablishmentarianism asked 31/12, 2021 at 5:1
3
Solved
I am following a sample app from the NDC Oslo which is this app: https://github.com/SteveSandersonMS/presentation-2019-06-NDCOslo/tree/master/demos/MissionControl.
This implements JWT as authentica...
Mikkimiko asked 26/4, 2020 at 9:52
8
Solved
Is there any way to detect the pre-rendering is going on in a Blazor component from the OnInitializedAsync life cycle method? I know the component workflow would call OnInitializedAsync called two ...
Noteworthy asked 8/3, 2020 at 16:49
8
I have an InputText in blazor and I want to prevent non-numeric characters, what is the basic razor and c# code to do that? here is how I need it to work, a user enters a character and it refuses t...
Churl asked 23/2, 2021 at 20:59
6
Hi I am working on Blazor server side and getting "An unhandled exception has occurred. See browser dev tools for details. Reload 🗙" message. i tried to see the console but nothing is th...
Vogeley asked 23/8, 2020 at 10:34
7
I am getting started with Blazor server-side and I don't get the routing right. I don't understand the need for the base tag in _host.cshtml. If I still have to add the base url in every Blazor com...
Hu asked 12/11, 2019 at 22:55
2
Solved
Is there a way to Mock ProtectedSessionStorage in a Blazor Server Side project?
I tried below code but I am getting error : "Type to mock (ProtectedSessionStorage) must be an interface, a dele...
Owsley asked 6/4, 2022 at 14:57
12
Solved
I have a Blazor (Server) application which runs perfectly fine, and which adheres to all rules set by Microsoft.CodeAnalysis.FxCopAnalyzers and StyleCop.Analyzers.
A heavily cut-down razor page is ...
Byer asked 26/11, 2019 at 12:43
8
Solved
I have the following Code for an InputSelect
<InputSelect class="form-control form-control form-control-sm"
placeholder="Role"
disabled="@IsReadOnly"
@bind-Value="Model.Role"
@onchange="@...
Stanstance asked 12/5, 2020 at 15:54
2
Solved
In Blazor Server in .net 7 I can do this in a Page.blazor:
@message
<button class="btn btn-primary mt-2 btn-block" @onclick="SendMessage">Send Message</button>
@co...
Impetuous asked 22/11, 2023 at 7:26
2
I had a Blazor component containing a persons name and their address. I have split out the address so I can reuse it. I am using 2 way data binding between the person and address to ensure that dat...
Keep asked 29/6, 2021 at 14:23
2
I've search the web for a simple tutorial for this but I can't seem to find this exact scenario.
I have the following projects:
WebApi
This is a standard .NET 8.0 web api with individual accounts a...
Simonesimoneau asked 30/11, 2023 at 19:40
8
Solved
So with a release of asp.net core 3.0 and blazor 1.0 I started doing some actual work with blazor. When splitting Blazor component code into code behind I am using the following
public class Logout...
Azurite asked 24/9, 2019 at 7:58
3
Solved
I have a Blazor server-side project that was set up with Individual Accounts. I scaffolded the AspNet.Core.Identity pages and wish to use a Blazor component inside one of the razor pages
by using t...
Begone asked 7/7, 2022 at 12:34
1 Next >
© 2022 - 2024 — McMap. All rights reserved.