下載的問題,挺怪!
xtuwz 2005-11-08 11:33:44 <%@LANGUAGE="VBSCRIPT" CODEPAGE="950"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>下载文件</title>
<link href="mycss.css" rel="stylesheet" type="text/css">
</head>
<body>
<%
response.write "<a href='file.asp' >返回上一頁</a>"
path=request("Csa")
file=request("Csb")
'response.write "<br><a href='"& path & file &"'>下載</a>"
response.write "<script>" & chr(13) & chr(10)
response.write "{" & chr(13) & chr(10)
'response.write "window.open('"& path & file &"');" & chr(13) & chr(10)
response.write "location.href('"& path & file &"');" & chr(13) & chr(10)
response.write "}" & chr(13) & chr(10)
response.write "</script>"
%>
在本机上下载正常('因為我在本机上做了虚以目录',也有这些文件),上传到服务器后,下载连不上服务器.不能完成下载.我试了2台服务器了.是不是代码有错.
如:path為'book//',file為'book1.pdf',用ACCESS数据库.