1<%@ Page language= "C #" codebehind= "$FILENAME $.cs" autoeventwireup= "false" inherits= "$INHERITS $"%>
2<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" >
3
45 6 <title>Ajax_exam1</title>
7 <meta name= "generator" content= "Microsoft Visual Studio. NET 7.1" >
8 <meta name= "Code_language" content= "C #" >
9 <meta name=vs_defaultclientscript content= "JavaScript" >
<meta name=vs_targetschema content= "http://schemas.microsoft.com/intellisense/ie5" >
One <meta http-equiv= "Content-type" content= "text/html charset=big5"/>
<script language=javascript>
13
VAR Ajax;
function Createajax ()
16 {
The If window. ActiveXObject)
18 {
Try
20 {
Return to new ActiveXObject ("Msxml2.xmlhttp");
22}
catch (E)
24 {
Try
26 {
Return to new ActiveXObject ("Microsoft.XMLHTTP");
28}
catch (E2)
30 {
return null;
32}
33}
34}
or else if window. XMLHttpRequest)
36 {
Panax Notoginseng return new XMLHttpRequest ();
38}
Or else
40 {
return null;
42}
43}
44
Onrcvdata function ()
46 {
if (ajax.readystate = 4)
48 {
if (Ajax.status = 200)
50 {
Wuyi var content = document.getElementById (' content ');
content.innerhtml = Ajax.respo