force download for files using webBrowser control

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: E Stafford (Ihavenone_at_blank.com)
Date: 09/21/04


Date: Tue, 21 Sep 2004 11:27:22 -0400

I am creating a form app that uses a webBrowser control and allows users
   to interact with a web hosted application. Users can query the web
app and generate a CSV file that they should be able to save locally.

When the button to save the csv is hit on the page displayed in the
webBrowser control, the CSV file generated by the app opened in a new
webBrowser control and rendered as plain text with comma seperated format.

How can I force the csv file to be dowloaded instead of rendered in a
new window?

Thank You for your help.



Relevant Pages

  • Re: force download for files using webBrowser control
    ... "File Download" Dialog Box for a Known MIME Type" located at (watch for line ... >I am creating a form app that uses a webBrowser control and allows users to>interact with a web hosted application. ... Users can query the web app and>generate a CSV file that they should be able to save locally. ...
    (microsoft.public.dotnet.languages.csharp)
  • Handling HTML events in .NETCF
    ... I am writing a .NET app for a Pocket PC 2003 device, ... What I would like to do is when a user hits a link on the HTML page ... webBrowser control I am using. ... How can I get interractions between HTML and my app working for a .NET ...
    (microsoft.public.dotnet.languages.csharp)
  • winforms webBrowser
    ... I am building Form1.cs app for the first time in visual studio 2010 pro. ... I have an html page called clock.htm which i use to display a little clock in the bottom right of my form using the webBrowser control. ... // Strings the app location and binds this to htmlfile ... label5 displays the correct file path so not sure what i need to do to get the page to load in webbrowser1 when the form is loaded. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Blocking User Input
    ... CSV file format. ... SENDKEYS was a suggestion. ... It doesn't care what that app is and there's no way to send ...
    (microsoft.public.vb.winapi)
  • Threading and Synchronization with the WebBrowswer control
    ... My application is built around an instance of the WebBrowser control. ... When I run it in the debugger, I see a number of threads created after my app calls the Navigate2method. ... My app is compiled and linked with the single threaded libraries and so far I haven't seen any problems as a result but I'm now concerned that there may be potential problems that I haven't seen yet. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)