aspÔõôÊäÈëXML£¿
¸÷λ´óÅ££¬ASPÔõôÊä³öXML°¡¡£¸ø¸öÀý×Ó¿´¿´°¡,ÔÚÍøÉÏÕҵöÈ«¶¼²»ÐС£Îļþ²»ÊÇ.xml ¶øÊÇ.asp µÄ
Ч¹ûÊÇÕâÑùµÄ£ºhttp://zl1.behc.com.cn/portal/company.asp?Companyid=13287&Rc=0
Ö±½Ó response.write ¾ÍÐÐÁË
response.write³öÀ´µÄÊÇ×Ö·û´®£¬²»ÊÇXMLÎĵµ°¡
ÉèÖÃÒ»ÏÂÊä³öÎı¾ÀàÐͼ´¿É
Response.ContentType = "text/xml"
Response.Write(" <xml............")
ÔÚÍøÉÏÕÒÁ˶δúÂë
<%
Response.ContentType = "text/XML"
Response.write(" <?xml version=""1.0"" encoding=""gb2312""?>")
Response.write(" <ÊÀ½ç>")
Response.write(" <ÄãºÃ>hello,world </ÄãºÃ>")
Response.write(" </ÊÀ½ç>")
%>
µ«Êä³ö³ö´í
´íÎóÀàÐÍ£º
Microsoft VBScript ±àÒëÆ÷´íÎó (0x800A0408)
ÎÞЧ×Ö·û
/test/11.asp, line 2
銆€銆€ Response.ContentType = "text/XML"
ÊÇÊä³ö£¬²»ÊÇÊäÈ룬´ò´í×ÖÁË
¿ÉÄÜ Response.ContentType Ç°ÃæÓп´²»¼ûµÄ¿Õ×Ö·û£¬É¾µôÇ°ÃæµÄ¿Õ¸ñÊÔÊÔ¿´
Response.write " <?xml version=""1.0"" encoding=""gb2312""?>"´Ë¾äÊä³ö֮ǰ£¬²»ÄÜÊä³ö¿Õ¸ñµÈÆäËû×Ö·û
hookee
ÎҰѿոñɾÁË£¬Êä³öÁËXML£¬µ«ÊÇÎÒ°Ñencoding=""gb2312"" ¸Ä³É utf-8 ÓÖ³öÏÖÉÏÃæµÄ´íÎó£¬ÕâÊÇÔõô»ØÊ£¿
Ŷ¡£Ã÷°×ÁË£¬Ð» л¡£½ÚµãµÃÓÃÓ¢Î
Ïà¹ØÎÊ´ð£º
<%@language="vbscript"%>
<%option explicit%>
<html>
<head> <title>xxx </title> </head>
<script language=vbs>
'×¢Òâ±äÁ¿ ......
HTML code:
dim jf
set conn=server.createobject("adodb.connection")
connstr="Driver={Sql Server};Server="&Sqlip&";Database="&Sqldb&";Uid="& ......
ÎÒÃÇÓÐÒ»¸öÍøÕ¾Ä£°å£¬www.c111.com.cn,Ï£ÍûÐÞ¸ÄһЩµØ·½£º
1£©µã»÷×ó²à¡°·þÎñÆ·ÅÆ¡±µÄÆäÖÐÒ»¸öС·ÖÀ࣬Èç¡°×ãÇò¡±£¬½çÃæµÄÓÒ²à¾Í³öÏÖÈçwww.c111.com.cn/1.jpg£¬µã»÷1.jpgÉÏ·½µÄÆäÖÐÒ»¸öÆ·ÅÆlogo£¬ÏÂÃæ¾Í³öÏÖÏà¹ØµÄÍ ......
ÎÒÔ±¾ÊÇѧjspµÄ¿ÉÕÒÁËÒ»¸öASPµÄ¹«Ë¾£¡ÎÒÒªÖØÐÂѧϰ£¡ ѧϰASP£¡ Ï£Íû´ó¼ÒÍÆ¼öÒ»±¾ºÃÊ鏸ÎÒлл
<ASP3.0¸ß¼¶±à³Ì> ÍøÉÏÓеç×Ó°æµÄ
·¢ÏÖÍøÉÏaspÐÅϢʱ×î¶àµÄ ±ÈÆäËûµÄ¶¼¶àºÃ¶à
yun
ÕÒ±¾ÓÐÓ¦ÓÃÊÂÀýµÄA ......