Õâ¸öAJAXÄÄÀï´íÁËÄØ
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ÎÞ±êÌâÎĵµ </title>
</head>
<script language="JavaScript" type="text/JavaScript">
function Login(username,password)
{
var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP")
xmlHttp.open("POST", "2-1.asp?username="+username+"&password="+password,false)
xmlHttp.send()
var re=xmlHttp.responseText;
//alert(re);
//setTimeout("Login(sendvalue.username.value,sendvalue.password.value)",1000);
}
</script>
<body>
<form method=post name=sendvalue>
<input type=text name=username>
<input type=password name=password>
<input name="ok" type="button" value="/Ìá½»" onClick="Login(sendvalue.username.value,sendvalue.password.value)">
</form>
<div id="re"> </div>
</body>
</html>
2-1.aspÎļþÈçÏ£º
<%
response.Write request("username")
response.Write request("password")
%>
<script language="JavaScript" typ
Ïà¹ØÎÊ´ð£º
ÎÒ±¾ÒÔΪ¿ÉÒÔ°ÑËûÃÇÒ»¸öÀàÒ»¸öÀàµÄ°´jsÎļþ×éÖ¯ÆðÀ´£¬ÈçClassOne.jsÀï¾Í·ÅClassOneÀ࣬ClassTwo.jsÀï¾Í·ÅClassTwoÀ࣬ÏñC#ÕâÑù×éÖ¯£»½á¹û¸ù±¾²»ÐС£
ÎÒÓÖÊÔÁËÏÂÒ³ÃæA.aspxµ÷B.aspxÒ³ÃæÀïдºÃµÄÀ࣬»¹ÊDz»ÐС£
......
¿Í»§¶ËÓÃAJAX·¢Ë͹ýÀ´Ò»¸ö×Ö·û´®£¬Ï£ÍûÔÚ·þÎñÆ÷¶ËÓÃxmlÐÎʽ½âÎö³öÀ´£¬¸ÃÔõô×ö°¡£¿£¡
±ÈÈçÎÒ·¢¹ýÀ´µÄ
querystring = " <request> <uid>2008 </uid> </request>"
ÔÚ· ......
ÓÃasp.netµÄajaxʵÏÖµã»÷ͼһµÃµ¥Ñ¡°´Å¥¡°ÊÇ¡±£¬ÏÔʾͼ¶þµÄÒþ²Øpanel(panelÄÚ°üº¬ÉÏ´«¿Ø¼þ)
panelÒ³Ãæ¼ÓÔØÊ±ÊÇÒþ²ØµÄ
µ«Êǵ±ÌύʱpanelµÄfileuploadÏÔʾûÓÐÎļþ
µ±ÎÒ°ÑpanelµÄvisiab ......
<div id="div6" runat="server" style= "height:auto;width:auto; text-align: left;">
& ......