Forum Moderators: open
One option is to always force a download, you can do that with the following code (C#)
string filepath = Request.QueryString.Get("/Docs/WordDoc.doc");
string filename = System.IO.Path.GetFileName(Server.MapPath(filepath));
FileInfo fi = new FileInfo(Server.MapPath(filepath));
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=" + filename);
Response.AddHeader("Content-Length", fi.Length.ToString());
Response.ContentType = "application/msword";
Response.WriteFile(Server.MapPath(filepath));
Response.End();