<html xmlns="http://www.w3.
org/1999/xhtml">
<head runat="server">
<t
ITle>无标题页</title>
<script ty
PE="text/javascript">
function getN
ame(){
VAR xmlhtt
p; if(window.XMLHttpRequest){
xmlhttp=new XMLHttpRequest();
}else{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readyState
==4
&& xmlhttp.status==200){
alert("你好:"+xmlhttp.responseText);
}
}
xmlhttp.open("post","Default.aspx?id=gname",true);
xmlhttp.send();
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div> <input id="Butto
n1" type="button" value="button" onclick="getName()" /></p>
</div>
</form>
</body>
</html>
protected void Page_Load(object sender, Event
args e)
{
if (Request["id"]!=null)
{
Response.Write("张三");
Response.End();
}
}