blazor-client-side Questions
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
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
4
Solved
I am trying to send an HTTP request from my Blazor app to my ASP.NET Core API. I have breakpoints everywhere. The application gives an exception right after the action method on the API controller ...
Evidential asked 1/12, 2020 at 4:41
11
Solved
I am getting this error on my App.razor:
Found markup element with unexpected name
'CascadingAuthenticationState'. If this is intended to be a component,
add a @using directive for it namespace
T...
Lardner asked 11/10, 2019 at 8:6
2
I'm trying to hook up MediatR in a client-side Blazor application purely to handle event notifications between components.
The event is published, and it gets picked up by a separate component with...
Kraut asked 14/10, 2020 at 10:44
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
12
I am trying to develop an app using Blazor WebAssembly and I am wondering about how I can protect my whole application if the user is not authenticated. The behavior I would implement is:
If an a...
Tugman asked 24/3, 2020 at 23:42
10
Solved
I am trying to show bootstrap modal then bind its buttons. But I cannot pass the first step showing the modal. I am using Blazor client template of .net core 3.1. I have a page named Modal.razor wh...
Comyns asked 9/12, 2019 at 21:19
10
I have Visual Studio 2019 16.6.2 installed, along with the .NET Core 3.1.301 SDK and all the necessary Blazor templates.
If I create a brand new Blazor WebAssmbly application, I can run it from Vis...
Stomacher asked 12/6, 2020 at 17:24
2
Solved
I'm trying to check if my blazor web assembly app is opened on mobile or not. For that,
I created a wwwroot/script.js file and added code:
function isDevice() {
return /android|webos|iphone|ipad|i...
Pigment asked 23/11, 2020 at 14:14
1
I have a lazy loaded assembly that contains services that I need to register with the built in Dependency Injection implementation. How do I register these services so I can inject them as dependen...
Coping asked 30/11, 2020 at 19:43
3
Solved
I'm trying to configure multiple API urls in the Program.cs class in Blazor WASM. I'm not seeing an AddHttpClient extension like in server-side. Was wondering if anyone had an alternate solution fo...
Oscitancy asked 17/2, 2020 at 21:33
2
Solved
I'm learning about the Blazor, and see benefit of 2 types client-side and server-side.
I want to use both on the same web e.g. one path is a client-side WebAssembly app, another path is a server-s...
Maxiemaxilla asked 27/9, 2019 at 9:27
3
Solved
My project is created in Blazor WASM ( I do not want to use Blazor server )
I would like to read XSD files from wwwroot:
Inside my XsdService.cs - c# class I was trying:
string pathToXsd = Path.Co...
Slaughter asked 3/8, 2020 at 21:6
3
When i use
@attribute [Authorize]
on a razor page in blazor Client app it give me this error
System.InvalidOperationException: Cannot provide a value for property
'AuthorizationPolicyProvid...
Byblow asked 3/9, 2019 at 16:7
4
Solved
I makes the NavMenu dynamically and return menu i the database by users and in the index page already i returned something in the database but when i run the application or reload it show me bellow...
Oneirocritic asked 22/9, 2019 at 4:20
1
Hi Need help on eventcallback from RederFragment Component to Parent Method below is the code snippet
GenericList component
@typeparam TItem
@foreach (var item in Items)
{
@ChildConten...
Mccormack asked 17/4, 2020 at 15:37
5
Solved
I'm creating a blazor server side app and have problems to bind a value between two custom components.
I've looked through different example of how the bind or @bind is supposed to work but I cann...
Oversight asked 2/10, 2019 at 7:14
3
I am creating a new Client-side Blazor PWA and received the following error messages after installing a few NUGET packages:
It looks like this is a known issue, but am confused why it has not been...
Leporide asked 31/12, 2020 at 18:20
5
HandleClick seems to only handle left clicks, but it looks like I can use onmouseup and the MouseEventArgs.Button property to detect the right click.
The problem is that the typical browser-provide...
Saucepan asked 24/1, 2020 at 15:44
10
Solved
I currentying trying to save the api url in an appsettings.
However, the configuration.Propertiers seems to be empty. I am not sure how to get the setting.
in program.cs:
public static async Task ...
Teachin asked 5/3, 2020 at 19:34
8
Solved
Breakpoints won't hit in ASP.NET Core 3.1, Blazor Webassembly project.
I have a solution with a single Blazor Webassembly project which I run locally.
When placing a breakpoint in a .cs file it s...
Overblouse asked 14/11, 2019 at 10:42
4
Solved
My situation is this: I'm trying to implement and Autocomplete.
The Autocomplete will have a Parameter that will receive a string and return a IEnumerable<TValue>.
Here is an example of wha...
Nitrate asked 21/4, 2020 at 14:12
3
Solved
I have a Blazor WebAssembly solution with a client project, server project and shared project, based on the default solution template from Microsoft. I'm editing and debugging in Visual Studio 2019...
Padilla asked 9/4, 2020 at 11:34
9
Solved
I have just one, quick question.
Is there way to hot reload a blazor app? At least, .razor files?
Now I'm hosting my app on local IIS (not IIS express).
I was looking through internet, but i didn'...
Somatic asked 30/9, 2019 at 17:55
1 Next >
© 2022 - 2024 — McMap. All rights reserved.