积极答复者
下载链接的问题

问题
-
里面放了一个下载链接:<a href="/mydzh.db">ecfile</a>
下载的时候发现下载不了
而改成其他txt文件能下
不知道什么原因
另外文件mydzh.db文件是存在的
- 已编辑 Honny_yeyh 2012年6月26日 12:13
2012年6月26日 12:11
答案
-
你好,
IIS 6.0默认并没有对.db文件的处理器。你需要自己写一个:
http://support.microsoft.com/kb/308001
或者直接通过一个asp.net页面进行下载。
http://aspalliance.com/259_downloading_files__forcing_the_file_download_dialog
写一个yourpage.aspx页面然后用他作为下载链接:
<a href="/yourpage.aspx">ecfile</a>
Allen Chen [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已编辑 Allen Chen - MSFT 2012年7月2日 8:26
- 已标记为答案 Honny_yeyh 2012年7月2日 11:16
2012年7月2日 8:26
全部回复
-
你好,
IIS 6.0默认并没有对.db文件的处理器。你需要自己写一个:
http://support.microsoft.com/kb/308001
或者直接通过一个asp.net页面进行下载。
http://aspalliance.com/259_downloading_files__forcing_the_file_download_dialog
写一个yourpage.aspx页面然后用他作为下载链接:
<a href="/yourpage.aspx">ecfile</a>
Allen Chen [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已编辑 Allen Chen - MSFT 2012年7月2日 8:26
- 已标记为答案 Honny_yeyh 2012年7月2日 11:16
2012年7月2日 8:26