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
相关问答:
我有一个asp源码,但是出现一个文件,我用asp解密都是乱码
请教
VBScript code:
??
%# , #&')*)-0-(0%()(?
(((((((((((((((((((((((((( ......
<%if request.QueryString("start") <>"" then%>
<%if cint(start)>0 then%>
<a href="search.asp?q= <%=q%>&start= <%if request.Query ......
最近我通过学习,感觉自己学的还可以了,想做一网站,但是一直都找不到题材,不知道做什么,希望各位给我点意见,如果有需求文档就更好了!希望大家给我点意见,谢谢!
先做个企业网站吧,我感觉一个人做网站不适宜 ......
文件:folder.inc
HTML code:
<%
Dim folderini,pos,pageName
fPath = Request.ServerVariables("PATH_TRANSLATED")
pos = instrRev(fPath,"\")
folderini = Left(fPath,pos)+&qu ......