I am setting up a generic downloader using an httphandler to download files.
I noticed that depending on what type of header I use I get a different popup.
These are really both attachments, as far as I can see. Both allow you to open, save and "save as" your files.
But in the "inline" version, you get a modal popup in the middle of the page. If you do the "attachment", you get a popup at the bottom of page which is attached to the page (it moves as you move the page but stays on the bottom) and it is not modal.
Why the different types of popups?
Thanks,
Tom
I noticed that depending on what type of header I use I get a different popup.
Code:
if (view)
{
response.AddHeader("content-disposition", "inline; filename=" + filename);
}
else
{
response.AddHeader("content-disposition", "attachment; filename=" + filename);
}
response.ContentType = GetContentType(filename);
response.WriteFile("~/App_Data/" + filename);
These are really both attachments, as far as I can see. Both allow you to open, save and "save as" your files.
But in the "inline" version, you get a modal popup in the middle of the page. If you do the "attachment", you get a popup at the bottom of page which is attached to the page (it moves as you move the page but stays on the bottom) and it is not modal.
Why the different types of popups?
Thanks,
Tom