protected virtual void OnHCBeforeNavigate(HtmlControlEventArgs e) { if (HCBeforeNavigate != null) { // Invokes the delegates. HCBeforeNavigate(this, e); } }
//note: this old version of before navigate is being used because of a bug in the.net framework. //win this bug is fixed, we should look at switching to using BeforeNavigate2 protected void OnBeforeNavigate(string url, int flags, string targetFrameName, ref object postData, string headers, ref bool wasHandled) { // Let the owning class know HtmlControlEventArgs e = new HtmlControlEventArgs(url); OnHCBeforeNavigate(e); /* * try * { * System.Windows.Forms.MessageBox.Show("Going to URL: " + url); * //wasHandled=m_hostShell.HandleNavigationEvent(URL); * } * catch (Exception error) * { * System.Windows.Forms.MessageBox.Show("There was an error handling the click. " + error.Message, "Program Error"); + } */ }
public void OnBeforeNavigate(object sender, HtmlControlEventArgs e) { CheckDisposed(); m_iURLCounter++; m_iMaxURLCount = Math.Max(m_iMaxURLCount, m_iURLCounter); SetBackButtonEnabledState(); SetForwardButtonEnabledState(); }
//note: this old version of before navigate is being used because of a bug in the.net framework. //win this bug is fixed, we should look at switching to using BeforeNavigate2 protected void OnBeforeNavigate(string url, int flags, string targetFrameName, ref object postData, string headers, ref bool wasHandled) { // Let the owning class know HtmlControlEventArgs e = new HtmlControlEventArgs(url); OnHCBeforeNavigate(e); /* try { System.Windows.Forms.MessageBox.Show("Going to URL: " + url); //wasHandled=m_hostShell.HandleNavigationEvent(URL); } catch (Exception error) { System.Windows.Forms.MessageBox.Show("There was an error handling the click. " + error.Message, "Program Error"); } */ }