471,354 Members | 1,549 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Auto download file using web control

Hi

I have a requirement to automatically download a file using a WebBrowser control without having the "Download File" pop up windows display.
I cannot use Webclient!!

I am using VS2005, .net2 and the application is a windows application.

Does anyone have a solution to automatically downloading the file from a WebBrowser control.

Thanks in Advance
Kevin
Jul 24 '07 #1
3 2463
radcaesar
759 Expert 512MB
For this u need to use the ie api to override that behavior
Have a look on this,
http://www.codeproject.com/shell/iesaveas.asp
Jul 24 '07 #2
Plater
7,872 Expert 4TB
You are using the webbrowser object in your project (to view webpages) and when someone clicks the link, you want your program to download that file without asking?

Is there any event that is thrown when you click a link? If so, you could use the HTTPWebRequest object to download the item.
Jul 24 '07 #3
Thanks for the reply guys.
However, I cannot download the file with any other means except the WebBrowser, this is because the files to download are in an HTTPS site using sessions, so, if I try to download with, lets webclient or webrequest, the website returns a "Session Invalid" error, and to code to use webrequest against this website is not viable.

Is there any way to surpress this dialog box? I am using C#
Jul 25 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Brakeshoe | last post: by
11 posts views Thread by Alex Maghen | last post: by
1 post views Thread by RJN | last post: by
1 post views Thread by Prakash | last post: by
1 post views Thread by Carlo | last post: by
3 posts views Thread by Iluvatar | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.