在 Razor 页面中使用 Blazor @bind
Using Blazor @bind in Razor page
我有一个带有表单的 Razor Page 应用程序。由于需要使用“动态”图片,我想在创建的表单中使用 Blazor 的 @bind 功能。我的意思和屏幕截图上的@bind 完全一样。图片取自教程视频[https://www.youtube.com/watch?v=Oeh2IJw7Zig&t=2353s]
是否可以在 Razor Pages 核心应用程序中添加此功能?无需“重写”全部为 Blazor webapp 类型。
Is it possible to add this functionality in Razor Pages Core App?
Without "rewriting" all into Blazor webapp type.
没有。仅 Blazor 支持 @bind
。没有文档说您可以将 @bind
用于 ASP.NET Core plain Razor Pages。
参考文档
我有一个带有表单的 Razor Page 应用程序。由于需要使用“动态”图片,我想在创建的表单中使用 Blazor 的 @bind 功能。我的意思和屏幕截图上的@bind 完全一样。图片取自教程视频[https://www.youtube.com/watch?v=Oeh2IJw7Zig&t=2353s]
是否可以在 Razor Pages 核心应用程序中添加此功能?无需“重写”全部为 Blazor webapp 类型。
Is it possible to add this functionality in Razor Pages Core App? Without "rewriting" all into Blazor webapp type.
没有。仅 Blazor 支持 @bind
。没有文档说您可以将 @bind
用于 ASP.NET Core plain Razor Pages。
参考文档