Force a 'Save As' dialog box without Open option?

Majella

Member
Joined
Sep 22, 2005
Messages
5
Programming Experience
1-3
How can I force a 'Save As' dialog box from an ASP.NET Web page? I want simply ‘Save As’ so I can browse to the download location. I do not want the ‘Open’ option but I need 'Cancel'.

Majella
 
This may work but i haven't tested it. You may be able to use the 'content-disposition' header. It would go something like this.....


VB.NET:
Response.AppendHeader("content-disposition", _
      "attachment; filename=" + Filepath)
 
Back
Top