Thanks Nicholas,
If I understand right, the example you provided required me to be able
to modify an asp page by adding a response header to the page. I do not
have the ability to do that in this situation. The web application being
accessed through the webbrowser control hosted in my windows form
application is provided by a 3rd party service that our company uses. I
do not have the ability to modify the pages. I have seen articles that
hinted at the idea of rewriting html source but I am not familiar with
the technique. Is there a way to modify the headers before they are read
by the browser control? Would that be an option or can I not alter the
response headers after the browser control recieves it?
Nicholas Paldino [.NET/C# MVP] wrote:
E,
You can do this by adding a header in the response for the content
disposition. Check out the knowledge base article titled "How To Raise a
"File Download" Dialog Box for a Known MIME Type" located at (watch for line
wrap):
http://support.microsoft.com/default...b;en-us;260519
The code is for the old ASP (it's only one line), but you can easily use
this in .NET (as a matter of fact, I used this for a file download site that
we use here internally).
Hope this helps.