ÔÚ vs2008Ϊasp.net ajaxÌí¼ÓjsÖÇÄܸÐÖª
ÔÚ
vs2008Ϊasp.net ajaxÌí¼ÓjsÖÇÄܸÐÖª
½ñÌìÕÒÁ˺þã¬ÖÕÓÚ¸ãÇå³þÁË£¬scriptManager¿Ø¼þÖ§³ÖjsÖÇÄܸÐÖª£¬¶ø´ÓÆä¼Ì³ÐµÄtoolkitScriptManager²»Ö§³Ö¡£ÖÁÉÙÔÚ
vs2008b2ÖÐÊÇÕâÑù¡£
ÒªÔÚjsÎļþÖÐÌí¼Óasp.net ajaxµÄjsÖÇÄܸÐÖª£¨ÓëscriptManager¿Ø¼þÎ޹أ©£¬ÔÚjsÎļþµÄ¿ªÍ·Ìí¼ÓÕâÑùÒ»Ðм´¿É£º
//
/<reference name="MicrosoftAjax.js"/>
ÈôÒªÔÚaspxÎļþÖÐÌí¼ÓÖÇÄܸÐÖª£¬ÍøÉϺܶ඼˵¿ÉÒÔÔÚScriptManager±ê¼ÇÄÚÌí¼Ó
<
Scripts
>
<
asp:ScriptReference
Path
="
"
/>
</
Scripts
>
²»¹ýÎÒ»ùÓÚtoolkitScriptManagerÈç´Ë³¢ÊÔÈÔȻʧ°ÜÁË£¬×îºó×Ô¼º°ÑC:\Program Files\Microsoft
ASP.NET\ASP.NET 2.0 AJAX
Extensions\v1.0.61025\MicrosoftAjaxLibrary\System.Web.Extensions
\1.0.61025.0Ŀ¼ÏµÄMicrosoftAjax.jsÎļþ¿½±´µ½projectµÄjsĿ¼Ï£¬È»ºóÓô«Í³µÄjs·½Ê½ÒýÓÃ
<
script src
=
"
js/MicrosoftAjax.js
"
type
=
"
text/javascript
"
></
script
>
¾ÓÈ»³É¹¦µØ»ñµÃÁËÖÇÄܸÐÖª£¬Ö»ÊÇÕâÁ½Ììд³ÌÐòµÄʱºò·¢ÏÖ£¬ÕâÑùд»áÒýÆðĪÃûÆäÃîµÄÔËÐÐʱ³åÍ»£¬Èç¹ûÊÇΪÁËÓµÓÐÖÇÄܸÐ
Öª£¬ÄÇôÔÚÔËÐÐʱÐèÒª°ÑÕâÒ»ÐÐ×¢Ê͵ôÔÙÔËÐС£
Ïà¹ØÎĵµ£º
×î½üÍøÉÏÌáµÄºÜ¶àµÄÒ»¸öиÅÄî¾ÍÊÇ AJAX ÁË, ÄÇô, AJAX ÊÇʲôÄØ? ÒÔÏÂÄÚÈÝÒýÓÃÍøÉÏ×ÊÁÏ:
AJAXÈ«³ÆΪ“Asynchronous JavaScript and XML”£¨Òì²½JavaScriptºÍXML£©£¬ÊÇÖ¸Ò»ÖÖ´´½¨½»»¥Ê½ÍøÒ³Ó¦ÓõÄÍøÒ³¿ª·¢¼¼Êõ¡£ËüÓлúµØ°üº¬ÁËÒÔϼ¸ÖÖ¼¼Êõ£º
Ajax£¨Asynchronous JavaScript + XML£©µÄ¶¨Òå
»ùÓÚ web±ê×¼£¨sta ......
Ajax------ºÜ¶à³ÌÐòÔ±¶¼Ï²»¶ÍæÕâ¸ö¶«Î÷,¾õµÃºÜÊǸßÉîĪ²â,¶øÇÒÔ½ÊÇÍ´¿àÔ½ÖÓ°®,ÎÒ·¢ÏÖÕâÊdzÌÐòÔ±µÄͨ²¡,ºÃÏñ²»ÕÛÄ¥×Ô¼º²»×ãÒÔÏíÊÜÕâôÃÀºÃµÄÉú»î,AjaxºÜ»ð,ȷʵºÜ»ð,»ðµ½Ê²Ã´³Ì¶ÈÎÒÒѾ²»´óÇå³þ,ÔÚµ±Ê±ÎÒѧ³ÌÐòµÄÄǸöÄê´úËüÉõÖÁ³¬¹ýspring,strutsµÈµÈÖ÷Á÷µÄ¿ò¼Ü,ÌìÄÄ΢ÈíºÍSUN¶¼ºÜµ£ÐÄ,µ«ÊÇʱ¼äÖ¤Ã÷Ajax½ö½öÖ»ÊǸöÕâЩ³ÌÐòÔ± ......
¶àÊý Web Ó¦ÓóÌÐò¶¼Ê¹ÓÃÇëÇó/ÏìӦģÐÍ´Ó·þÎñÆ÷ÉÏ»ñµÃÍêÕûµÄ HTML Ò³Ãæ¡£³£³£Êǵã»÷Ò»¸ö°´Å¥£¬µÈ´ý·þÎñÆ÷ÏìÓ¦£¬ÔÙµã»÷ÁíÒ»¸ö°´Å¥£¬È»ºóÔٵȴý£¬ÕâÑùÒ»¸ö·´¸´µÄ¹ý³Ì¡£ÓÐÁË Ajax ºÍ XMLHttpRequest ¶ÔÏ󣬾ͿÉÒÔʹÓò»±ØÈÃÓû§µÈ´ý·þÎñÆ÷ÏìÓ¦µÄÇëÇó/ÏìӦģÐÍÁË¡£±¾ÎÄÖУ¬Brett McLaughlin ½éÉÜÁËÈçºÎ´´½¨Äܹ»ÊÊÓ¦²»Í¬ä¯ÀÀÆ÷µÄ ......
ÔÚ HTML µÄÍⲿÎļþÖÐÒ»Ñù£¬±ê¼ÇµÄ×éÖ¯ÓëÆäÑùʽ¡¢¸ñʽºÍÐÐΪÊÇ·ÖÀëµÄ¡£ËäÈ»Äú¿Ï¶¨¿ÉÒÔÓà JavaScript ¸ü¸ÄÔªËØ»òÎı¾µÄÑùʽ£¬µ«Êµ¼Ê¸ü¸ÄÄúµÄ±ê¼ÇËù²¼ÖõÄ×é֯ȴ¸ü¼ÓÓÐȤ¡£
Ö»ÒªÀμÇÄúµÄ±ê¼ÇֻΪÄúµÄÒ³ÃæÌṩ×éÖ¯¡¢¿ò¼Ü£¬Äú¾ÍÄÜÁ¢ÓÚ²»°ÜÖ®µØ¡£ÔÙÇ°½øһС²½£¬Äú¾Í»áÃ÷°×ä¯ÀÀÆ÷ÊÇÈçºÎ½ÓÊÜËùÓеÄÎı¾×éÖ¯²¢½«Æäת±äΪ³¬¼¶ÓÐȤµ ......
AjaxµÄÔÀí¼òµ¥À´ËµÍ¨¹ýXmlHttpRequest¶ÔÏóÀ´Ïò·þÎñÆ÷·¢Òì²½ÇëÇ󣬴ӷþÎñÆ÷»ñµÃÊý¾Ý£¬È»ºóÓÃjavascriptÀ´²Ù×÷DOM¶ø¸üÐÂÒ³Ãæ¡£ÕâÆäÖÐ×î¹Ø¼üµÄÒ»²½¾ÍÊÇ´Ó·þÎñÆ÷»ñµÃÇëÇóÊý¾Ý¡£ÒªÇå³þÕâ¸ö¹ý³ÌºÍÔÀí£¬ÎÒÃDZØÐë¶Ô XMLHttpRequestÓÐËùÁ˽⡣
XMLHttpRequestÊÇajaxµÄºËÐÄ»úÖÆ£¬ËüÊÇÔÚIE5ÖÐÊ×ÏÈÒýÈëµÄ£¬ÊÇÒ»ÖÖÖ§³ÖÒì²½ÇëÇóµÄ¼¼Êõ ......