HighTechTalks DotNet Forums  

Supress Save Dialog for WebBrowser

Dotnet Framework (WinForms Controls) microsoft.public.dotnet.framework.windowsforms.controls


Discuss Supress Save Dialog for WebBrowser in the Dotnet Framework (WinForms Controls) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
anand gothe
 
Posts: n/a

Default 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.

- &



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.