private void webBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e) { if (HeaderForm != null) { //Get action from the form string action = HeaderForm.GetAttribute(ReportExecution.ActionCommand); if (e.Url.AbsolutePath.EndsWith(action)) e.Cancel = processAction(action); } }