日期:2014-05-17  浏览次数:20661 次

在asp<% %>里有写sfilename的定义,在同个asp的<script> </script>里写window.location="http://localhost/abc/sfilename";这样对吗,<s
在asp <%     %> 里有写sfilename的定义,在同个asp的 <script>   </script> 里写window.location= "http://localhost/abc/sfilename ";这样对吗, <script> 还认识sfilename吗,怎么让它认识呢,我调试下来说http://localhost/abc/sfilename     404   not   found


------解决方案--------------------
window.location= "http://localhost/abc/sfilename
改成
window.location= "http://localhost/abc/ <%=sfilename%>
------解决方案--------------------
asp是只执行 <%与%> 之间的内容,除此外的不执行的
------解决方案--------------------
Mappath 是把逻辑路径影射为绝对路径 你到底想怎么做 打开excel是需要绝对路径的 那就不要http;//*****的,只需要E:\路径\abccsv2007年2月25日.xls就可以 自己拼写字符串
------解决方案--------------------
错误是http 404 not found http://localhost/abc/E:abccsv2007年2月25日.xls


你的sfilename是路径名,把相关路径去掉,只要文件名就可以了