由于要做一个mp3下载的东西,单击下载,会被Media Player打开播放, 保存不了,甚是不便,网上搜了半天,终于找到解决方案,现帖出来给大家。
try

...
{
FullFileName = Server.MapPath(FileName); //FileName--要下载的文件名
FileInfo DownloadFile= new FileInfo(FullFileName);
if(DownloadFile.Exists)
...{
Response.Clear();
858


,弹出文件保存对话框窗口&spm=1001.2101.3001.11974&articleId=1571000&d=1&t=3&u=52fe5a15aa684e4b8ce98078b89a3167)

被折叠的 条评论
为什么被折叠?



