I have a C# asp.net web page to stream a pptx file to the screen. The first time the page runs, it gives a open file option. I select open file, the page posts back. But I am presented only with save or cancel. The file never opens. I have to save the file to disk and then open it. Is there any way to simply open the file the first time?
Response.ContentType = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
Response.WriteFile("xyz.pptx");
Response.End();