Response Headers
-
Hi all, Is there a way that i can use inline and attachment at the same time in content-disposition for Response Headers? i have code like this
HttpContext.Current.Response.AddHeader("Content-disposition", "inline; filename=__aaa.pdf");
I want to open the file first in the browser and then open the dialog box for download as well. How can i do that? I tried to AddHeader again after that line of code and replaced the "inline" with "attachment", but that didn't work. Please help me. Thanks alot! -ewin :)
-
Hi all, Is there a way that i can use inline and attachment at the same time in content-disposition for Response Headers? i have code like this
HttpContext.Current.Response.AddHeader("Content-disposition", "inline; filename=__aaa.pdf");
I want to open the file first in the browser and then open the dialog box for download as well. How can i do that? I tried to AddHeader again after that line of code and replaced the "inline" with "attachment", but that didn't work. Please help me. Thanks alot! -ewin :)
-
Make two pages out of it; use the first page to display it, the second page to download it. Next, embed the first page into page two (using a frame?) :)
I are troll :)