Rank: Newbie Groups: Member
Joined: 11/19/2019 Posts: 2
|
private void webViewContent_BeforeNavigate(object sender, EO.WebBrowser.BeforeNavigateEventArgs e) { if (!e.NewUrl.ToString().StartsWith("about:blank") && !string.IsNullOrEmpty(e.NewUrl.ToString()) && !e.NewUrl.ToString().StartsWith("javascript") && !e.NewUrl.ToString().Contains("/umps/") && !e.NewUrl.ToString().Contains("/apex/")) {
//Remove Chatter Pane Event when session expire if (e.NewUrl.ToString().Contains("session")) { if (RemoveChatterPaneEvent != null) RemoveChatterPaneEvent(); } else if (!Manager.ExternalLinksDisabled) { if (e.NavigationType == EO.WebBrowser.NavigationType.LinkClicked) { ChatterWebBrowserManager.LaunchBrowser(e.NewUrl.ToString()); e.Cancel = true; } else if (e.NavigationType == EO.WebBrowser.NavigationType.Other) webViewContent.LoadUrl(this.Manager.baseAppUrl); } else if (Manager.ExternalLinksDisabled) { if (e.NavigationType == EO.WebBrowser.NavigationType.LinkClicked) e.Cancel = true;
else if (e.NavigationType == EO.WebBrowser.NavigationType.Other) webViewContent.LoadUrl(this.Manager.baseAppUrl); } } }
Above is the code we are using for before navigate, Can you please help us to find the replacement for this as there is no NavigationType
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
|