razor-components Questions

4

How can I pass parameter into razor component? So far I tried @(await Html.RenderComponentAsync<Rateplan>(RenderMode.ServerPrerendered, new { id= 100})) But I receive an error InvalidO...

2

Solved

I recently upgraded from Asp .NET Core 2.2 to 3.1 and can use Razor Components in razor pages. They look basically like View Components except it uses blazor and everything on the same file. I trie...
Gaige asked 13/12, 2019 at 19:37

2

Solved

I have a .NET Blazor Server app and need to pass an object from one component to another. Both components are pages, meaning that they have @page directives with routes. I know how to use cascading...
Cartomancy asked 10/5, 2022 at 2:23

5

I have a simple child Blazor component (MyModal) like so: <div class="modal"> <h3>@Title</h3> @BodyTemplate </div> @code { [Parameter] string Title { get; set; } [Para...
Pivoting asked 4/7, 2019 at 19:49

2

Solved

Im trying to integrate Blazor into an existing asp.net core 3.1 application. All tutorials I have seen, says that after doing the correct setup in the web project, you should be able to do this in ...
Maquis asked 9/12, 2019 at 14:35

1

Solved

Is there a way to open Razor component in Visual Studio with environment with dual screens . I'll love to have markup on one screen and @code {} section on other. While MVC developing usually marku...
Catina asked 16/1, 2020 at 13:6

1

Solved

I am learning Blazor. I have no experience with component-based programming. I have two components: a DateRangePicker and a RadzenCheckBox. <RadzenFieldset Text="Test Component"> <Date...
Craniate asked 2/1, 2020 at 6:32

0

I'm testing the new Razor Components (aka. Server Side Blazor) and I'm finding the need to stop the project, edit, recompile and restart the server, very time consuming. I want to edit the *.razor ...
Repp asked 4/4, 2019 at 16:14

2

Solved

I created a "Razor Components" project. I am trying to execute an asynchronous method when pressing a button, but could not figure out the syntax yet. This is my Index.razor: @page "...
Doxia asked 3/4, 2019 at 14:3
1

© 2022 - 2024 — McMap. All rights reserved.