关于在asp中创建xmlhttp对象失败的问题
<%
dim XMLHTTP,strTemp
set XMLHTTP= CreateObject("Microsoft.XmlHttp")
XMLHTTP.open "post","http://www.codetoad.com/",false
XMLHTTP.send()
%>
这样的代码就提示不能创建activex对象
但是用
<script language=vbscript>
dim XMLHTTP,strTemp
set XMLHTTP= CreateObject("Microsoft.XmlHttp")
XMLHTTP.open "post","http://www.codetoad.com/",false
XMLHTTP.send()
</script>
为什么会这样呢 还有我看到有人把asp的部分写到类中,可是运行这样的程序我本机就会报错 为什么 谢谢