读书人

js访问ashx文件的方法解决方法

发布时间: 2012-03-18 13:55:39 作者: rapoo

js访问ashx文件的方法
多多益善...现在程序怎么都访问不了ashx文件了...想请教各位,看有没有别的方法

js在f文件夹下.File.ashx在根目录下...

../File.ashx可以访问根目录下的File文件吗?

[解决办法]
<script src="xxx.ashx"></script>
[解决办法]
<img src="myHttpHander.ashx?id=1" width="20" height="20" />

var url = "/myHttpHander.ashx?id=" + escape(Txt.value);
xmlReq.open("get", url, true);
xmlReq.onreadystatechange = callBack;
xmlReq.send(url);
function callBack() {}
[解决办法]

探讨
<script src="xxx.ashx"> </script>

读书人网 >asp.net

热点推荐