当前位置:编程学习 > asp >>

利用ASP生成XML文档!!(源码)

答案:<%
set conn=server.createobject("adodb.connection")
conn.open applicatio("connstring")
set rs=server.createobject("Adodb.recordset")
sql="select * from table order by id desc"
rs.open sql,conn
do while not rs.eof
   msg=msg & rs("字段1") & chr(9) & rs("字段2) & vbcrlf
   rs.movenext
loop
set f=server.createobject("scripting.filesystem")
set myfile=f.createotextfile(mappath.server(xmllover.xls),true)
%>
已生成xmllover.xls!!!!

上一个:将SAX加入我们的ASP应用中
下一个:HTML Just Passing Through

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,