asp加载XML问题
我要用ASP加载一个XML,有两个文件,sxml.asp这个文件用来显示XML,search.asp 这个文件加载XML
代码如下:
sxml.asp
VBScript code:
<%
response.ContentType = "text/xml"
response.Write("<?xml version=""1.0"" encoding=""utf-8""?><Root><Citys RowCounts=""2""><row><SubRowId>1</SubRowId><CityID>489</CityID><CityName>全国</CityName></row><row><SubRowId>2</SubRowId><CityID>530</CityID><CityName>北京</CityName></row></Citys></Root>")
%>
XML图:
search.asp
VBScript code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
response.Charset = "uft-8"
dim xmlcontentCity,xmldocCity
function SearchCity()
set xmlHttp = server.CreateObject("Msxml2.XMLHTTP")
xmlHttp.open "GET","sxml.asp",false
xmlHttp.send
if xmlHttp.readyState = 4 then
xmlcontentCity = xmlHttp.responseText
set xmldocCity = server.CreateObject("Microsoft.XMLDOM")
xmldocCity.async = false
xmldocCity.l
相关问答:
conn.asp
<%
Set Conn=Server.CreateObject("ADODB.Connection")
Conn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source="&server.MapPath("Connt ......
<%if request.QueryString("start") <>"" then%>
<%if cint(start)>0 then%>
<a href="search.asp?q= <%=q%>&start= <%if request.Query ......
在一个发表文章的页面,如果中途关闭页面,这提示是否放弃编辑,
如果点击放弃,则转向填写放弃原因的界面,
如果点不放弃,这停留在原页面,
如果是点击页面的超级链接,则触发事件失效
如何编写代 ......
各位牛人:这些日子作了个小网站,测试时用一个用户名登录,并上传了图片,很正常但是,当我用另一个用户名登录,再上传图片是就出错了,提示:“路径未找到”,错误“80020009,发生意外”过一会又正常了,可是再用 ......