Prevent Navigating Away - Blazor (NEW in .NET 7)

preview_player
Показать описание


We can now intercept when the user browses out website. A use case would be if the user has not filled out a form, now we can prevent them from leaving the page.
Рекомендации по теме
Комментарии
Автор

Hi Alberto, Are there any way to prevent the navigation in Blazor with NET 6 ? I think that the function LocationChanginContext is only valid for Blazor with NET 7. Thank you!

rubenblazorBlazorBlazor
Автор

Hi, great video thanks, any idea about make Blazor Navigation Manager Go Back, have a history of pages visited.

franciscofernandezcasas
Автор

Gracias por tu aporte como siempre. Existirá si la manera de prevenir el cierre de la aplicación? Estoy trabajando con la plataforma de window.

f.gabrielsosarozzi
Автор

Many thanks Mr.Felipe for keeping us up to date 👍

Tamer_Ali