Dear Telerik,
I am trying to navigate to a different page, but before I can do this, a dialog appears (the IE "leave this page" or "stay on this page" dialog).
I would like to leave the page and go to an other URL.
I already tried several things; using the onbeforeunload handler and by using invoked keypresses. But I cannot get this to work on my test lists while running remotely.
Onbeforeunload:
I also tried to use this.Manager.Settings.UnexpectedDialogAction = UnexpectedDialogAction.HandleAndContinue;, because my testlist needs the global setting set at "Do not handle", but still no success.
Keypress:
And added the reference system.windows.forms to my project and to the cs file.
What am I missing here?
Regards,
Reinout
I am trying to navigate to a different page, but before I can do this, a dialog appears (the IE "leave this page" or "stay on this page" dialog).
I would like to leave the page and go to an other URL.
I already tried several things; using the onbeforeunload handler and by using invoked keypresses. But I cannot get this to work on my test lists while running remotely.
Onbeforeunload:
OnBeforeUnloadDialog dialog = OnBeforeUnloadDialog.CreateOnBeforeUnloadDialog(ActiveBrowser, DialogButton.OK);Manager.DialogMonitor.AddDialog(dialog);ActiveBrowser.NavigateTo("/ExterneAanroep.aspx?pagina=wachtwoord-activeren", true);dialog.WaitUntilHandled(10000);Keypress:
ActiveBrowser.NavigateTo("/ExterneAanroep.aspx?pagina=wachtwoord-activeren", true);Manager.Desktop.KeyBoard.KeyPress(Keys.Enter, 200);What am I missing here?
Regards,
Reinout