Search code examples
asp.net-coreblazorrazor-pages

Using Blazor @bind in Razor page


I have a Razor Page app with forms. Because of necessity of using "dynamic" pictures I would like to use @bind feature from Blazor in the created Forms. I mean exactly as the @bind on the screenshot. Picture is taken from tutorial video [https://www.youtube.com/watch?v=Oeh2IJw7Zig&t=2353s] enter image description here

Is it possible to add this functionality in Razor Pages Core App? Without "rewriting" all into Blazor webapp type.


Solution

  • Is it possible to add this functionality in Razor Pages Core App? Without "rewriting" all into Blazor webapp type.

    No. Only Blazor support @bind. No document said you can use @bind for ASP.NET Core plain Razor Pages.

    Reference documents