帮我看看时间为什么传递不回去.
我的代码如下:
<%
Dim WebUrl
WebUrl = "http://10.0.0.234:81/"
dim longnum ,datestart ,dateend
longnum = Request("longnum")
datestart = Request("datestart")
dateend = Request("dateend")
Set objHTTP = Server.CreateObject("MSXML2.XMLHTTP")
Set xmlDOC =Server.CreateObject("MSXML.DOMDocument")
strWebserviceURL= weburl & "Service1.asmx/GetSystemMONew"
strRequest ="longnum=206" & "datestart=date()" & "dateend=date()"
objHTTP.Open "POST", strWebserviceURL, False
objHTTP.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded"
objHTTP.Send(strRequest)
xmlDOC.load(objHTTP.responseXML)
if objHTTP.Status=200 then
xmlStr = xmlDOC.xml
xmlStr = Replace(xmlStr,"<","<",1,-1,1)
xmlStr = Replace(xmlStr,">",">",1,-1,1)
Response.Write xmlStr
else
Response.Write objHTTP.Status&"<br>"
Response.Write objHTTP.StatusText
end if
%>
这两个是时间
datestart = Request("datestart") 开始时间
dateend = Request("dateend") 结束时间
strRequest ="longnum=206" & "datestart=date()" & "dateend=date()" longnum可以传递过去,开始时间和结束时间这样写是否有错误.
------解决方案--------------------
strRequest ="longnum=206" & "datestart="&date()&"dateend="&date()&""