blazor 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
3
Solved
Sample:
@{
var s = "<p>Sample text</p>";
}
Expectation:
Sample text.
I want it rendered on browser but I couldn't render it. It just outputs the whole value of s as text string. ...
Fosse asked 11/2, 2020 at 10:52
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 have a Blazor server app with a client project. In the client project, I have a bunch of pages and components. Adding a file with the same name as the razor page with the CSS extension worked so ...
3
I'm working on a Blazor 8 application and I'm having trouble with browser caching of my static files. When I make changes to the CSS files, the changes are not immediately visible because the brows...
Stalky asked 30/11, 2023 at 9:23
3
Today a Blazor Server App I've been developing daily for a couple of weeks suddenly started throwing an exception in _Host.cshtml when I launch it in debug mode from within Visual Studio 2022. The ...
Prostitution asked 12/1, 2022 at 20:37
6
Solved
I have a Blazor page with two components. One component has a button which generates a random number when clicked. The other component has a text area which should display the generated random numb...
Itu asked 13/5, 2020 at 19:13
3
Is there a Blazor-native way to select all text in a text input field on user focus? Something like this in JavaScript:
<input onClick="this.select();" >
I've built a JS interop fu...
Indignation asked 13/10, 2020 at 22:39
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
2
Solved
I'm wondering if there's a recommended way of converting string to RenderFragment in code.
Now I'm doing this:
RenderFragment fragm = @<text>@myString</text>;
but I don't know if this ...
Orchid asked 9/3, 2022 at 11:10
4
Solved
With blazor I get Non-nullable warnings all around the code. Those warnings seems to be wrong, however solving them introduces a lot of code with the only purpose to hide the warning while the valu...
4
Solved
I'm writing a Blazor app and obviously I want to get some components rendered in there. I've just tried adding a basic navigation element to my main layout but it's not rendering. I can see the ele...
Enclave asked 12/8, 2018 at 1:57
3
Solved
.Net Blazor WebAssembly sounds really great. It can run fully client-side, meaning there is no need for a dynamic server and one can even host it on a CDN. Even better, it is possible to turn it in...
Spirituel asked 2/12, 2023 at 12:25
3
I've been experimenting with Blazor in .NET 8 and I'm trying to understand how the Auto-render mode works. From what I've learned, Blazor initially uses a WebSocket connection in Auto mode to provi...
5
I have an app built using .NET8 Blazor with InteractiveServerRenderMode.
App.razor is configured like in Template you get when you create Blazor Server App with Global Interactivity and Identity.
I...
Bespread asked 4/3 at 17:45
4
Solved
I'm getting "; expected" error in my .razor file and in _razor.g.cs file,
In previous blazor versions I was finding these g.cs files in the solution folder, now I can't find them there, a...
Senegambia asked 18/2, 2022 at 19:23
3
Solved
I created a fresh new Blazor WASM project targeting .NET 8 and want to deploy it to Azure Static Web App service using GitHub actions but I keep getting an error that tells me that .NET version 8 i...
Institutionalize asked 29/8, 2023 at 18:19
4
Solved
We use Blazor WebAssembly and I want to call an non-static method in my Index.razor-File by JavaScript.
JavaScript:
(function () {
// keydown event
window.addEventListener("keydown", f...
Auteur asked 17/7, 2020 at 12:57
3
Solved
I have a Blazor Web Assembly app on dotnet 5. I've added a Microsoft.AspNetCore.Components.Forms.InputFile control to a component. This causes a "Choose Files" button to be rendered.
How ...
Faenza asked 14/4, 2021 at 19:29
5
Solved
From what I understand this error occurs when the web.config is not configured properly. However when I publish the app the following web.config gets generated
<?xml version="1.0" encoding="ut...
Edgeways asked 13/2, 2020 at 22:0
16
I'm just trying to use a Http POST method in a Blazor app through
public async Task CreateUnit(UnitEntity unit)
{
await _http.PostJsonAsync<UnitEntity>("api/units", unit);
}
_http...
Sanies asked 10/3, 2020 at 17:32
5
Solved
I tried to follow the instruction of creating form from youtube channel like those:
https://www.youtube.com/watch?v=zfqQ_fhmPOQ
or
https://www.youtube.com/watch?v=40njRXr6eUo
or I even tried a very...
8
I have a c# WinForms app that I have been converting to Blazor Wasm. It needs to perform a set cpu-intensive calculations (i.e. no IO or UI interaction) after most user inputs. The calculations ent...
Sebi asked 28/11, 2020 at 17:7
1
I have a Blazor Webassembly, .NET hosted application. On the server we host it on, the base path of the app will be mydomain.com/coolapp. Therefore, to try to get the app to render correctly on the...
Bibliotheca asked 14/2, 2022 at 14:42
8
I am trying to trigger the model validation in Blazor by using EditForm.
For some reason, the oninput event doesn't seem to be called if using the InputText, but it works using a simple input elem...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.