Eric uses XMLHTTP to get data demonstration from the server

xiaoxiao2021-03-06  75

Using XMLHTTP acquires data from the server directly using the Request.form with the server, no need to decode, no Chinese display problem is available for all CGI service

Service code: ASP.NET with C # version, it is easy to change to other versions, I will not waste time:]

<%

@ Page Language

=

"

C #

"

%>

<%

String

Result

=

""

;

for

(

int

i

=

0

I

<

Request.form.count; i

)

{RESULT = Request.form.getKey (i) "=" Request.form.get (i) "&";

IF

(RESULT)

==

""

)

{Result = "EMPTY Request!";

Else

{Result = result.substring (0, Result.Length - 1);

Response.write

"

Server Requested:

"

Result;

%>

转载请注明原文地址:https://www.9cbs.com/read-120669.html

New Post(0)