For processing XMLHTTP request ASP program, look at the time is not very simple ah!??
=====
<%on Error Resume Next
Response.contenttype= "Text/xml"
If Request.ServerVariables ("request_method") = "POST" Then
Set Req=server.createobject ("Microsoft.XMLDOM")
Req.async=false
Req.load (Request)
Set Conn=server. CreateObject ("Adodb.connection")
Conn. Open "ODBC", "UID", "password"
Sql= "Select Uid,id,sex from Uidinfo ORDER by id DESC"
Set Rs=server. CreateObject ("Adodb.recordset")
Rs. Open Sql,conn
Response.Write "<?xml version=" "1.0" "?>"
Response.Write "<mess>"
If not Rs. EOF Then
Do but not Rs. Eof
Response.Write "<id>" &trim (RS ("id")) & "</id><uid>" &trim (RS ("UID")) & "</uid ><sex> "&trim (rs
("Sex")) & "</sex>"
Rs. MoveNext
Loop
Else
Response.Write "<id>k</id><uid></uid><sex></sex>"
End If
Response.Write "</mess>"
If Rs. State=1 then Rs. Close
Set rs=nothing
Conn. Close
Set conn=nothing
Set req=nothing
End If
%>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service