asp.net-blazor Questions

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...

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...

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

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...

5

I'm currently using MudBlazor and really like it. However, there are things I find myself repeatedly adding to components like CancellationTokens, are customizing the template myself. Is there a wa...
Cylindroid asked 29/7, 2022 at 18:38

2

Solved

With tag helpers you could define an area where you could easily write content. For example, i could make a bootstrap card tag helper and easily render whatever i want inside the card body tag. Wit...
Athena asked 10/3, 2020 at 21:40

3

Solved

I need that onclick event occurring in the child component, execute ShowMessage method in parent component passing message string as parameter. The following code is not working: child.razor: <...

2

Solved

I have a project that has two pages and I need to create page one with blazor web assembly and create page two with blazor server side any idea on how to configure the project for this point?

3

Solved

i have two component. The first component includes list of model and the second component contains modal form I want to click on the model when inside the first component In the second component, o...
Plastid asked 3/2, 2020 at 14:50

1

I've a problem with Blazor when I have different projects having namespaces with the same term on different side of the dot(s), in my example frontend.project and project.data: What I did: Create ...
Nebiim asked 4/11, 2020 at 10:9

4

Solved

I have a question for Blazor Server Side. I want to @page route url define with variable or property. I can use now with below default method @page "/route-url" <h1>Page Test</h...
Pangenesis asked 31/3, 2021 at 20:13

1

Solved

I'm new to a Blazor and now I'm working to Blazor WebAssembly project. I have couple razor page with a table where I'm displaying data from SQL. When I click in one of the table rows it opens a pag...
Zarate asked 15/4, 2022 at 10:24

5

Solved

In JavaScript we can use the following call to write debug output to the browser´s console: console.log("My debug output."); Output in Google Chrome: How can I log "My debug output" in my com...
Si asked 2/4, 2020 at 13:21

2

Solved

If I create a new Blazor WASM app, out of the box I can use Hot Reload by running dotnet watch run in a terminal window. This will launch a browser window, and any changes I make will update in the...
Dipterocarpaceous asked 3/11, 2021 at 14:12

2

In the main method of dotnet core blazor web assembly app there is a WebAssemblyHostBuilder class which builds the host for the blazor application. In that class there is a public property called R...

1

Solved

I'm trying to return a RenderFragment from a component private method, but I'm getting the compilation error: '__builder' does not exist in the current context here's the minimum code that shows t...
Hildredhildreth asked 24/11, 2021 at 12:36

1

I've tried debugging in both vs code and vs.net 2019 and in both cases debugging everything bug Program.cs works. I'm trying to figure out why configuration isn't working but can't step into the co...

1

Solved

I have recently read up on .NET MAUI but I am confused about its purpose with Blazor. Can you develop a webpage using .NET MAUI and blazor and target the web, ios, android and windows? For example ...
Scammony asked 23/7, 2021 at 14:32

2

Solved

I'm looking for a way to render a Blazor component into an HTML string, so that I'll be able to use it as a templating engine to create and send emails in my web application. Ideas?

3

Solved

I am playing with Blazor and created a web app that is server hosted. I have to put an authorize line on top of the page like this @attribute [Authorize] to ensure the user is logged in. It seems l...
Allocate asked 14/3, 2020 at 22:26

2

I am trying to create a RevalidatingServerAuthenticationStateProvider to check if a ClaimsPrincipal has expired. I have created an implementation of it (TokenExpiryAuthStateProvider) and registered...
Alvinalvina asked 25/9, 2020 at 14:39

2

Solved

I have some text fields binding inside a for loop. <Input type="text" @onchange='(ChangeEventArgs e)=>DataChange(e,item)' value="@item.value" /> here if user type any...
Iconology asked 24/8, 2021 at 4:48

3

Solved

How can I restrict TModel to be classes only or to be implementing a specific interface? @typeparam TModel cannot get the syntax working.
Waynewayolle asked 17/3, 2020 at 0:7

1

Solved

I am using .NET 6.0.100-preview.6.21355.2 in Visual Studio 2022. I started with the WebAssembly templates, then followed this YouTube tutorial for implementing SQL via HTTP API under WebAssembly. T...
Drinkwater asked 9/8, 2021 at 13:42

1

Solved

I am new to Blazor. I have created a carousel in Blazor Webassembly project in .NET 5. It is not sliding automatically and its previous and next buttons are not working. Please suggest how to solve...
Funke asked 13/4, 2021 at 9:32

© 2022 - 2024 — McMap. All rights reserved.