Webbrowser control File Download dialog Bypass

2020-04-26 12:33发布

问题:

Actually I want to download a file from website using Webbrowser Control, but because of File download Dialog box, I am not able to automate downloading process. For Bypass it I want to use webclient and need to transfer all session and cookies to webclient from WebBrowser Control or I need set all custom header from webbrowser control to WebClient.

Please Help me I am in very bad situation.

Thanks In Advance.....

回答1:

Actually i want to download a file from website using Webbrowser Control, but because of File download Dialog box, i am not able to automate downloading process.

Implement a custom Download Manager. Search the web for IDownloadManager and you'll find some samples in C#.