David
So in C# code it's Response.AddHeader("Content-Disposition", "attachment;
filename=\"file.pdf\"");
And then do Response.WriteFile
Browser will be forced (thanks to "attachment" word) to pop up a window
offering to save file or open it in application.
George.
"David C" <dlc...@lifetimeinc.com> wrote in message
news:efUJQgjp...@TK2MSFTNGP06.phx.gbl...
David
"George Ter-Saakov" <gt-...@cardone.com> wrote in message
news:%23Vg$tpjpIH...@TK2MSFTNGP05.phx.gbl...
PS: There was a bug in IE 5.01 and it ignored the "attachment" .... But I
hope it's not the case here. Since we already have IE 7.
George.
"David C" <dlc...@lifetimeinc.com> wrote in message
news:u4Ka6Pvp...@TK2MSFTNGP06.phx.gbl...
David
"George Ter-Saakov" <gt-...@cardone.com> wrote in message
news:uTW$GUvpIH...@TK2MSFTNGP04.phx.gbl...
David
"George Ter-Saakov" <gt-...@cardone.com> wrote in message
news:uTW$GUvpIH...@TK2MSFTNGP04.phx.gbl...
If you choose "Save" then you can save it with the name you specified in
your "Content-Disposition" header.
If you choose "Open" IE will actually save the file into "TEMP" folder and
then open application (as if you double clicked on file). But if file with
that name already exists IE quietly appends [1] (or [2],...) to the name.
I do not know how to change that behavior andf most likely you can not....
George.
"David C" <dlc...@lifetimeinc.com> wrote in message
news:OJSnBcvp...@TK2MSFTNGP06.phx.gbl...
As for using ActiveX, the process would be the same for any type of file
since you're just embedding the application on the webpage and letting it do
the rest.
"David C" <dlc...@lifetimeinc.com> wrote in message
news:efUJQgjp...@TK2MSFTNGP06.phx.gbl...