how to warn user on blazor page if he tries to exit or go away from current Page?

Posted 3 years ago by ShishirDahal
0

I have a blzor (.razor) page and want to warn user that they will loose data when they try to exit the page or try to navigate away from the page. I did not see any such life cycle methods for this on blazor. Any help on how to do this is appreciated.

Someone is typing...

Post a Reply

You must be logged in to add a new post.
Number of online users: 1
An error has occurred. This application may no longer respond until reloaded. Reload 🗙