Is it possible to stop the back button from working during a data call? For instance, when registering, I don’t want someone to press the back button otherwise they may register for my service and not know it (other than confirmation email)? (And the registration will fail the next time they try)
Share
Handle the
BackKeyPressevent or override theOnBackKeyPressmethod in your page class, and then sete.Handled = true;when you want to prevent backwards navigation.Note that if you do this, then you should provide the user with a way to cancel your long-running process so they can back out if they want to.