|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
ASP最大的缺点在于网络的安全性和可靠性,企业将经营数据放在开放的平台上,最大的担忧就是如何保证这些数据不被其他人破坏。下载Sometimesyouwantausertodownloadabinaryfileinsteadofopeningitinsidethebrowserwindow.
Thereareseveraldifferentwaystoaccomplishthis.
Generically:
<%
FileName="Document.Doc"
Response.ContentType="application/octet-stream"
Response.AddHeader"content-disposition","attachment;filename="&filename
SetStream=Server.CreateObject("ADODB.Stream")
Stream.Open
Stream.LoadFromFileServer.MapPath(Filename)
Conents=Stream.ReadText
Response.BinaryWriteContents
Stream.Close
SetStream=Nothing
%>
Ifyouknowthefiletypethatyouwouldliketheusertodownload,try:
<%
Filename="document.doc"
Response.ContentType="application/vnd.ms-word"
Response.AddHeader"content-disposition","attachment;filename="&filename
%>
OtherContentTypes:
vnd.ms-excel-ForExcel
vnd.ms-powerpoint-ForPowerPoint
vnd.ms-project-ForMicrosoftProject
pdf-ForAdobeAcrobatDocuments
rtf-ForRickTextDocuments
vnd.lotus-wordpro-ForWordPro
vnd.lotus-1-2-3-ForLotus1-2-3
vnd.visio-ForVisio
jpeg-forJPGImageFile
gif-forGIFImageFile
png-forPNGImageFile当然了,现在国内CRM厂商的产品与其说是CRM,但从至少从我的角度分析上来看,充其量只是一个大型的进销存而已了,了解尚浅,不够胆详评,这里只提技术问题 |
|