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.....
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#.
来源:https://stackoverflow.com/questions/23355188/webbrowser-control-file-download-dialog-bypass