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

AJAXÎÊÌ⣡£¡

Ò»¸öButton
Ò»¸öModalPopupExtender
Ò»¸öPanel

ÎÊÌâÊÇÕâÑùµÄ£ºÔÚ×öÐÞ¸Äʱºò µ±µãÐÞ¸ÄButton Panel ÏÔʾÁËÒ²ÓÐÒõӰЧ¹û£»
µ«ÊÇÎÒÐÞ¸ÄButtonÓÐbtn_Update_Clickʼþ£¬ÕâʼþÊǰó¶¨Êý¾ÝµÄ£»
ÏÖÔÚµÄЧ¹ûÊÇ µãÁËÐÞ¸ÄButton°´Å¤Ëü²»ÊÇÏÈÖ´ÐÐbtn_Update_Clickʼþ
¶øÊÇÖ±½ÓµÄÏÔʾPanel
ÓÐûÓа취ÏÈÈÃËüÖ´Ðаó¶¨ÁËÔÙÏÔʾPanel £¿£¿£¿
û¿´¶®..ÄÜÌù´úÂëô??

ButtonÊÇModalPopupExtenderµÄTargetControlIDÂð£¿

$find("extenderid").show();


Â¥É쵀 ²»ÐÐѽ£¡~
function pageLoad()
      {
        if (showPanel == true)
        $find('mpe').show();
        }
ÕâÀï²»¶¼Ã»µ÷Óõ½Âð£¿


ÒýÓÃ
Â¥É쵀 ²»ÐÐѽ£¡~
function pageLoad()
      {
        if (showPanel == true)
        $find('mpe').show();
        }
ÕâÀï²»¶¼Ã»µ÷Óõ½Âð£¿


²»¿ÉÄܵ÷Óò»µ½¡£ÄãÔÚÒ³ÃæÉÏ·ÅÁË <asp:ScriptManager />ÁËÂð£¿Ö»ÒªÄã·Å£¬Ëü¾Íµ÷£¡

ÎÒ´úÂëÉÏдµÄÊÇToolScriptManager£¬Äã¸Ä³ÉScriptManager°É¡£

<asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:Button ID="ButtonPopup"


Ïà¹ØÎÊ´ð£º

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


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

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

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

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

´ó¼Ò¿´¿´ÎҵĴúÂëÓÐʲôÎÊÌ⣨¹ØÓÚajaxµÄ£©

ÔÚ¼ÒÑо¿ajax£¬¿´Á˱ðÈ˵ÄÒ»¸öÍøÉϹºÎïÉ̳ÇÏîÄ¿µÄÔ´´úÂ룬×Ô¼ºÒ²À´·Â±ðÈ˵Ķ«Î÷Á·Ï°Á·Ï°£¬Ã»Ïë³öÎÊÌâÁË£¡Ò»ÏµÄÕâЩ´úÂëÊÇÎÒ·ÂÕÕ±ðÈËдµÄ¡£ÎÒÊÇÏëÈÃ×¢²áµÄÈËÌîдÓû§Ãû£¬¹â±êÀ뿪Óû§ÃûºóÃæµÄÌîд¿Õ°×´¦ºóÁ¢¿ÌÀûÓÃaj ......

AjaxÓëSessionµÄÎÊÌâ - .NET¼¼Êõ / ASP.NET

֮ǰÓöµ½Ò»¸öÎÊÌâ¡£
ÓÚÊÇ×öÁËÒÔÏÂʵÑ飺
Ò³Ãæ¼ÓÔØºó£¬Ìá½»Ò»¸öAjaxÇëÇó(ÔݳÆÎªajax1)£¬ÇëÇóµÄÏß³ÌÔÚ·þÎñÆ÷Éϱ»Ë¯Ãß10ÃëÖÓ¡£
µã»÷Ò³ÃæÉÏÒ»¸öbutton£¬´¥·¢ÁíÒ»¸öAjaxÇëÇó(ajax2)¡£
µ±Ã»ÓÐʹÓÃsession£¬ÔÚ·þÎñÆ÷δ´ ......

ajaxµÄʹÓÃÎÊÌâ

ajaxʹÓÃÖÐÓöµ½¼¸¸öÎÊÌ⣬Çë¸÷λ°ïæ¡£

1¡¢Ê¹Óà alert(xmlhttp.responsetext); µ¯³öµÄÈ´ÊÇÕû¸öÒ³ÃæµÄHTMLÎı¾¡£
2¡¢Ê¹ÓÃxmlhttp·¢³öµÄÇëÇó£¬ÔÚÁíÒ»Ò³ÃæµÄPage_LoadÀͨ¹ýÓï¾äµÃµ½Ò»¸ö±íµÄÖµ£¬ÈçºÎ½«Õâ¸ö ......

¸ß·ÖÇó£¬AjaxÑéÖ¤

ÎÒÏëÍê³É£ºÔÚÓû§ÊäÈëÃû³Æºó£¬Êó±êÀ뿪±à¼­¿òµÄʱºò¾ÍÑéÖ¤¸ÃÃû³ÆÔÚ¿âÀïÊÇ·ñ´æÔÚ£¬Èç¹ûÒÑ´æÔÚ¸ø³öÌáʾÐÅÏ¢£¬ÈÃÖØÐÂÊäÈë¡£²»´æÔÚ£¬²»¸ø³öÈκÎÐÅÏ¢¡£¾ÍÀàËÆÓÚ×¢²á°Ù¶ÈÕ˺ÅʱһÑù¡£
ǰ̨´úÂëÔõôд£¿Ajax
http://www ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ