Supress Save Dialog for WebBrowser -
12-28-2007
, 07:01 AM
Hi,
I want to programatically login to a website and download a file.
I used webbrowser control to login automatically, but as soon i hit
(navigate) the URL for the file, it pops up the IE Save Dialog box.
I cannot use WebClient or WebRequest cos if i directly access the URL of the
file i need to download, i simply get an html telling my session has
expired.
I must visit the home page of the site and login to get a valid session only
then i can download the file.
With webbrowser control, everything works fine but the Save Dialog has to be
avoided.
Is there a way to suppress this Save Dialog when we access a non-html URL
with webbrowser control?
Thanks in advance.
- & |