Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Õâ¸ö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


Ïà¹ØÎÊ´ð£º

asp.net ajax¿Ø¼þÓõö಻¶à£¬Òª²»ÒªÑ§£¿

»ù±¾µÄ5¸ö¿Ø¼þ»¹ºÃ£¬ÏÂÔØÁËÀ©Õ¹µÄ¿Ø¼þ¾ÍÍ·´óÁË

¸Ð¾õÕæÊÇÂÒ£¬ÓÖÕÒ²»µ½ËµÃ÷¡£



Èç¹ûÊÇ´¿Ñ§Ï°µÄ»°¾Í»ù±¾¿Ø¼þŪÃ÷°×¾ÍºÃÁË£¬Èç¹ûÊÇÏîÄ¿ÐèÒª¾Íû°ì·¨ÁË£¬±ØÐëŪÃ÷°×

ÕÒ²»µ½ËµÃ÷£¿

ÄãÏÂÔØÏÂÀ ......

ASP.NETÀïµÄÒ»¸öAJAXµÄ´íÎó


ÎÒµÄÒ³ÃæÀïÓõÄAJAX¿Ø¼þ µ«Ò³Ãæ¾²Ö¹Ò»¶Îʱ¼ä¾Í»á³öÏÖÉÏÃæµÄÒ»¸ö´íÎóÊÇÔõô»áÊÂѽ Ôõô½â¾ö°¡
¸ßÊÖ°ï°ïæ°¡

½«ÏîÄ¿Éϼ¶Ä¿Â¼ÖеÄÖÐÎÄÃû³ÆÈ«²¿¸Ä³ÉÓ¢ÎÄ

Â¥ÉÏ˵µÄºÜÇå³þÁË¡£°ï¶¥Ò»Ï°É

Õâ¸öÎÊÌâ²»ÊǺܳ£ ......

ajaxÀïfileuploadÉÏ´«µÄÎÊÌâ






ÓÃasp.netµÄajaxʵÏÖµã»÷ͼһµÃµ¥Ñ¡°´Å¥¡°ÊÇ¡±£¬ÏÔʾͼ¶þµÄÒþ²Øpanel(panelÄÚ°üº¬ÉÏ´«¿Ø¼þ)
panelÒ³Ãæ¼ÓÔØÊ±ÊÇÒþ²ØµÄ
µ«Êǵ±ÌύʱpanelµÄfileuploadÏÔʾûÓÐÎļþ
µ±ÎÒ°ÑpanelµÄvisiab ......

AJAXÇëÇó

¿Í»§¶ËHTMLPage.htmÒ³Ãæ
HTML code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html x ......

ajaxµÄAsyncPostBackTriggerûЧ¹û

            <div id="div6" runat="server" style= "height:auto;width:auto; text-align: left;">
          & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ