Author: everlearnin | Posted on: 6/28/2010 5:43:49 AM | Views : 794

I want to initiate download for a pdf file. I used the code below, however the file is downloaded before the save as dialog box is displayed. I want to display the dialog box before downloading!
Response.Clear(); Response.AddHeader("content-disposition", "attachment; filename=" + file); Response.ContentType = "Application/adobe"; Response.WriteFile(path); Response.Flush(); Response.End();
Any advice?

...

Go to the complete details ...