ÔÚ 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
>
¾ÓÈ»³É¹¦µØ»ñµÃÁËÖÇÄܸÐÖª£¬Ö»ÊÇÕâÁ½Ììд³ÌÐòµÄʱºò·¢ÏÖ£¬ÕâÑùд»áÒýÆðĪÃûÆäÃîµÄÔËÐÐʱ³åÍ»£¬Èç¹ûÊÇΪÁËÓµÓÐÖÇÄܸÐ
Öª£¬ÄÇôÔÚÔËÐÐʱÐèÒª°ÑÕâÒ»ÐÐ×¢Ê͵ôÔÙÔËÐС£
Ïà¹ØÎĵµ£º
1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(" <script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')
</script>");
Response.Write(" <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>");
2.//µ¯³ö¶Ô»°¿ ......
Beyond File | New Company: from Cheesy Sample to Social Platform Scott Hanselman in Lagoon L on Monday at 11:30 AM The web has changed and there's a new way of thinking about your applications. You can't just write some HTML and CSS anymore and expect to be the next Twitter. Hear h ......
¶àÊý Web Ó¦ÓóÌÐò¶¼Ê¹ÓÃÇëÇó/ÏìӦģÐÍ´Ó·þÎñÆ÷ÉÏ»ñµÃÍêÕûµÄ HTML Ò³Ãæ¡£³£³£Êǵã»÷Ò»¸ö°´Å¥£¬µÈ´ý·þÎñÆ÷ÏìÓ¦£¬ÔÙµã»÷ÁíÒ»¸ö°´Å¥£¬È»ºóÔٵȴý£¬ÕâÑùÒ»¸ö·´¸´µÄ¹ý³Ì¡£ÓÐÁË Ajax ºÍ XMLHttpRequest ¶ÔÏ󣬾ͿÉÒÔʹÓò»±ØÈÃÓû§µÈ´ý·þÎñÆ÷ÏìÓ¦µÄÇëÇó/ÏìӦģÐÍÁË¡£±¾ÎÄÖУ¬Brett McLaughlin ½éÉÜÁËÈçºÎ´´½¨Äܹ»ÊÊÓ¦²»Í¬ä¯ÀÀÆ÷µÄ ......
ÔÚ HTML µÄÍⲿÎļþÖÐÒ»Ñù£¬±ê¼ÇµÄ×éÖ¯ÓëÆäÑùʽ¡¢¸ñʽºÍÐÐΪÊÇ·ÖÀëµÄ¡£ËäÈ»Äú¿Ï¶¨¿ÉÒÔÓà JavaScript ¸ü¸ÄÔªËØ»òÎı¾µÄÑùʽ£¬µ«Êµ¼Ê¸ü¸ÄÄúµÄ±ê¼ÇËù²¼ÖõÄ×é֯ȴ¸ü¼ÓÓÐȤ¡£
Ö»ÒªÀμÇÄúµÄ±ê¼ÇֻΪÄúµÄÒ³ÃæÌṩ×éÖ¯¡¢¿ò¼Ü£¬Äú¾ÍÄÜÁ¢ÓÚ²»°ÜÖ®µØ¡£ÔÙÇ°½øһС²½£¬Äú¾Í»áÃ÷°×ä¯ÀÀÆ÷ÊÇÈçºÎ½ÓÊÜËùÓеÄÎı¾×éÖ¯²¢½«Æäת±äΪ³¬¼¶ÓÐȤµ ......
ajax¾ÍÊÇjavascript ÒòΪÒÔÇ°javascriptûÓÐhttpXMLrequest¶ÔÏ󣬴ÓIE5.0Ö®ºó³öÏÖ£¬Ëµ°×ÁËajax¾ÍÊÇ¿ÉÒÔÓÃjavascriptÏò·þÎñÆ÷·¢ËÍÇëÇ󣬲¢ÇÒÄܽÓÊÕ·þÎñ·µ»ØµÄÄÚÈÝ,дajax³ÌÐòֻҪд³öÒ»¸ö·¢Ëͺ¯ÊýºÍÒ»¸ö½ÓÊÕ·þÎñÔ±·µ»ØµÄº¯Êý¼´¿É£¬ÔÚ·þÎñÆ÷³ÌÐòÖпÉÒÔ·µ»Ø×Ö·û´®Ò²¿ÉÒÔ·µ»Øxml£¬ÊµÀý³ÌÐòhttp://xsuo.javaeye.com/blog/578637 ......