Currently, I am in the process of developing a tool to streamline tasks at my workplace. One feature we need is an aspx webpage where users can input information, then click on a submit button. When the submit button is clicked, a javascript download dialog is triggered to download an xml file. My goal is to capture the download URL so I can subsequently open the xml file with my application to extract pertinent information. I am utilizing a WebBrowser event for this purpose. Due to the nature of this being a javascript call, the Navigating event, Navigated event, and DocumentCompleted event do not occur. Instead, only the FileDownload event occurs, but the URL remains the same as the main aspx page.
Is there anyone who could advise me on how to intercept the URL of the download and possibly prevent the download dialog from appearing?
Thank you in advance!