I think you are probably going to be correct, I am going to give that a try next week. If you happen to know of any sites I could reference that does something similar, I would appreciate it.
Thanks!
Main Topics
Browse All TopicsI am generating an internal email in C# that contains a hyperlink to a file on a server. Depending on the recipients email
client and personal settings, when they click on the link, some are prompted to save and for others it immediately opens the file.
Is there something I can do to always allow some sort of prompt to save the file?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Here's a really brief article on the concept by a pretty well known developer:
http://www.hanselman.com/b
There's also http://support.microsoft.c
For code examples:
Here's a c# example:
Here is a code snippet in asp.net(C#):
private void Button1_Click(object sender, System.EventArgs e)
{
string strFileToDownload=@"C:\1.j
Response.ContentType = "application/octet-stream"
Response.AddHeader("Conten
filename="+System.IO.Path .GetFileName(strFileToDown
Response.WriteFile(strFile
}
found on: http://www.eggheadcafe.com
A bit more here: http://stackoverflow.com/q
Then I found something I didn't know, it seems there is a content disposition class in .net:
http://msdn.microsoft.com/
hth and that I'm not just drowning you in links
Matt
p.s. Strangely this afternoon I've had a something dropped on my desk essentially asking to create such a download page in PHP so i'll be going over this stuff myself in the near future - let me know how it works out for you. I'll try and post back my PHP code when i'm done (or I might convert it to c# just to keep in practice - not using to much .net these days)
Business Accounts
Answer for Membership
by: mpn_1983Posted on 2009-10-30 at 06:29:00ID: 25702704
Yes, there should be I vaguely recall having a similar problem myself some time ago.
I think it hinged on doing something with 'content-disposition'?
The link could go to a page designed to handle the download for which one of it's functions would be to always prompt a user what to do with the file - though thats extra work it may be the only way to 'force' the issue as otherwise the decision is presumably handled by the server and if unspecified the client?
hth
Matt