易截截图软件、单文件、免安装、纯绿色、仅160KB

Asp 调用WebService示例

<% '---调用WebService 获取Exchange2007已知用户的邮件未读数
'---参数说明----
'url:webservice 的路径
'params:方法参数
'method:方法名称
'dataType:返回的数据类型
function webServices(url,params,method,dataType)
set objXML=Server.CreateObject("MSXML2.XMLHTTP")
objXML.open "post",url&"/"&method,false
objXML.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
objXML.send(params)
if objXML.Status=200 then
Set xmlDOC = server.CreateObject("MSXML.DOMDocument")
xmlDOC.load(objXML.responseXML)
webServices = xmlDOC.documentElement.selectSingleNode("//"& dataType &"").text
end if
end function
'调用示例:
response.Write webServices("http://localhost:1936/Service1.asmx","username=yaling","GetNewMailCount","int")
%>
 


相关文档:

asp程序上传到服务器数据库连接超时问题

我写了个程序,本地运行完全正常,上传到服务器在服务器上操作有时候能正常操作,但是运行一会儿就服务器连接超时,然后就不能正常操作了,关闭网页,打开还是不能连接数据库操作,等半小时后或者更久又能正常了,请问这个是怎么回事?本地随时都能正常运行切找不出任何问题。高手帮帮忙啊! ......

ASP URL傳輸參數隱藏

使地址欄URL固定,隱藏參數:
<head>
</head>
<frameset>  
    <frame   name=""   src="Login.aspx"   target="Login.aspx"   scrolling="auto"   noresize></frame>
<nofr ......

asp静态生成,伪静态

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Session.CodePage=65001%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- #include file="../configinc/conndb.asp"-->
<!--#include file="../configi ......

asp分页实例

<%
set rs=server.CreateObject("adodb.recordset")
ids=""
call lids(keys)
ids=keys&ids
sql="select id,title,pic_xiao,content from "&tables&" where lid in("&ids&") "
......

Asp内置对象的使用

可以使用下面的任何ASP内置对象,而不必在ASP脚本中特别声明。
1. Request:
定义:可用来访问从浏览器发送到服务器的请求信息,可用此对象读取已输入HTML表单的信息。
集:
Cookies:含有浏览器cookies的值
Form:含有HTML表单域中的值
QueryString:含有查询字符串的值
ServerVariables:含有头和环境变量 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号