µÚÒ»Õ ASP.NET Ajax¼ò½é
µÚÒ»Õ ASP.NET Ajax¼ò½é
1.1ʲôÊÇAjax
Ò»£®Ê²Ã´ÊÇAjax
AjaxÊÇAsynchronous JavaScript and XML(Òì²½JavaScript ºÍXML)µÄËõд£¬ÓÉÖøÃûÓû§ÌåÑéר¼ÒJesse-James GarrettÔÚ2005Äê2ÔÂ18ÈÕ·¢±íµÄһƪÃûΪAjax:a New Approach to Web ApplicationsÎÄÕÂÖÐÊ×ÏÈÌá³ö¡£
Ajax²¢²»ÊÇÖ»°üº¬JavaScriptºÍXMLÁ½ÖÖ¼¼Êõ£¬ÊÂʵÉÏ£¬AjaxÊÇÓÉJavaScript¡¢XML¡¢XSLT¡¢CSS¡¢DOMºÍXMLHttpRequestµÈ¶àÖÖ¼¼Êõ×é³ÉµÄ¡£
XMLHttpRequest¶ÔÏó£ºÊÇAjaxµÄºËÐÄ£¬¸Ã¶ÔÏóÓÉä¯ÀÀÆ÷ÖеÄJavaScript´´½¨£¬¸ºÔðÔÚºǫ́ÒÔÒì²½µÄ·½Ê½Èÿͻ§¶ËÁ¬½Óµ½·þÎñÆ÷¡£
´ÓÓ¢ÎÄÔÒâÀ´Ëµ£¬Ëü´ú±íä¯ÀÀÆ÷ÓëWeb·þÎñÆ÷Ö®¼äÒÔÒì²½·½Ê½½øÐйµÍ¨£¬²¢ÇÒͬʱ·¢ËÍÓë½ÓÊÕXML¡£´Ó¼¼Êõ½Ç¶È£¬Ö»ÒªÊ¹ÓÃÏÂÁм¼Êõ¿ª·¢µÄÒ³Ãæ³ÌÐò£¬¶¼¿ÉÒÔ±»ÊÓΪÊÇAjaxµÄʵÏֳɹû£º£¨1£©Ê¹Ó÷ûºÏW3C¹æ·¶µÄCSSÓëXHTMLÀ´¶¨ÒåÒ³ÃæÍâ¹Û¡££¨2£©Ê¹ÓÃä¯ÀÀÆ÷µÄDOMÒÔ¼°DHTML¼¼ÊõÀ´ÏÔʾ¶¯Ì¬ÄÚÈÝÓë·Ö²ãÄÚÈÝ£¬²¢ÓëÓû§²úÉú»¥¶¯¡££¨3£©Ê¹ÓÃXML½øÐÐÊý¾Ý½»»»£¬²¢Ê¹ÓÃXSLTת»»XML¸ñʽµÄÊý¾Ý¡££¨4£©Ê¹ÓÃXMLHttpRequest»òXMLHTTPÕâ×éAPIÀ´½ÓÊÕÒì²½Êý¾Ý£¨5£©JavaScriptÓë΢ÈíInternetExplorerä¯ÀÀÆ÷ÌØÓеÄJscriptÊÇ×ñÑECMAScript±ê׼ʵÏֵļ¼Êõ¡£
Ajax²¢²»ÊÇij¼Ò³§É̵ÄרÀû£¬Ò²²»ÊÇij¼Ò³§ÉÌËùÓеĶÔÏó¡¢×é¼þ»ò²úÆ·¡£
Ajax ÊÇÒ»ÖÖ¼¼Êõ¡¢Ò»ÖÖ¸ÅÄî¡¢Ò»Öּܹ¹¡£
Ëùν¶¯Ì¬HTML(Dynamic HTML£¬¼ò³ÆDHTML)£¬Æäʵ²¢²»ÊÇÒ»ÃÅеÄÓïÑÔ£¬ËüÖ»ÊÇHTML¡¢CSSºÍ¿Í»§¶Ë½Å±¾(JavaScript)µÄÒ»ÖÖ¼¯³É¡£ DHTML½¨Á¢ÔÚÔÓм¼ÊõµÄ»ù´¡ÉÏ£¬¿É·ÖΪÈý¸ö·½Ã棺һÊÇHTML£¬Ò²¾ÍÊÇÒ³ÃæÖеĸ÷ÖÖÒ³ÃæÔªËضÔÏó£¬ËüÃÇÊDZ»¶¯Ì¬²Ù×ݵÄÄÚÈÝ£»¶þÊÇCSS£¬CSSÊôÐÔÒ²ÊǶ¯Ì¬²Ù×ݵÄÄÚÈÝ£¬´Ó¶ø»ñµÃ¶¯Ì¬µÄ¸ñʽЧ¹û£»ÈýÊÇ¿Í»§¶Ë½Å±¾(ÀýÈçJavaScript)£¬Ëüʵ¼Ê²Ù×ÝWebÒ³ÉϵÄHTMLºÍCSS¡£
XHTMLÊÇÒ»¸ö»ùÓÚXMLµÄÖñêÓïÑÔ£¬¿´ÆðÀ´ÓëHTMLÓÐЩÏàÏó£¬Ö»ÓÐһЩСµÄµ«ÖØÒªµÄÇø±ð¡£
¶þ£®Ajax½â¾öµÄÎÊÌ⣺
Ìá¸ßWebÓ¦ÓóÌÐòµÄËٶȣ¬²»ÔÙÈÃÓû§µÈ´ý¡£
AjaxµÄ¸ßÃ÷Ö®´¦ÔÚÓÚ£¬ËüÖ»»á½«Ò³ÃæÖÐÐèÒª¸üеIJ¿·Ö·¢Ë͸øWeb ·þÎñÆ÷Ϊ´¦Àí£¬²¢ÇÒ½«´¦ÀíºóµÄÄÚÈÝ·¢Ëͻؿͻ§¶Ëä¯ÀÀÆ÷½øÐоֲ¿¸üС£
Èý.µäÐÍÓ¦ÓóÌÐò£º
1.http://home.live.com:¸öÐÔ»¯ÍøÒ³¡£Óû§¿ÉÒÔÍÏ·ÅÍøÒ³ÄÚÈÝλÖá£
2.http://local.live.com:Îı¾ÊäÈë¿òÓÐˮӡЧ¹û£¬ÌáʾʹÓõÄÊäÈë¡£
3. http://local.live.comÍøÉϵØͼÈÎÒâÍϷŵã»÷¼ÓÔØ
Ó¦ÓÃÏÖ×´£º
ÊÂʵÉÏAjaxµÄ¼¼ÊõʼÓÚ1998Äê¡£ÔÚ2005Ö®
Ïà¹ØÎĵµ£º
½üÀ´£¬Ëæ×ÅMono2.4ºÍJexus web server 2.3µÄ³É¹¦·¢²¼£¬ÔÚLinux ƽ̨¼ÜÉèAsp.netµÄʱ»úÒѾÍêÈ«³ÉÊì¡£ÓÉÓÚLinux·þÎñÆ÷ϵͳËù¾ß±¸µÄ´óÁ¿µÄÓŵ㣬¿ÉÒÔÔ¤¼Æ£¬¿çƽ̨µÄLinux ASP.NETÍøÕ¾±Ø½«½øÈëÎÒÃǵŤ×÷ÓëÉú²úʵ¼Ê¡£
Ãû´Ê½âÊÍ£º
Ò»¡¢Mono:
MonoÊÇÒ»¸ö¿ªÔ´ÏîÄ¿£¬ÊÇ°´ECMA-335¶¨ÒåµÄ±ê×¼Ö´ÐÐ.NET¿ò¼Ü£¬¼òµ¥µØ˵£¬Mono¾ÍÊÇ ......
£¨±¸×¢£ºÎÄÖкìÉ«×ÖÌåÊÇÎÒÔÚÔÎĵĻù´¡ÉÏÌí¼ÓµÄ½âÊÍ˵Ã÷£©
΢ÈíµÄʵÀý½Ì²ÄÖн²ÁËÈýÖÖÓïÑÔ£ºc#¡¢vb ¡¢Jscript£¬ÎªÁËÈôó¼Ò¹ýÒ»°Ñж«Î÷ñ«£¬ÎÒÃÇ»¹ÊÇѧc#°É¡£Õâ¸ö×îºÃÓÐÒ»µãc++»ù´¡¡£
²»¹ýûÓÐҲûÓйØϵ£¬´ó²»Á˶à·ÑµãÁ¦ÁË¡£
ÈκÎÒ»ÃÅÓ ......
<Ò»>Ò³Ã漶µÄ´íÎó´¦Àí
void Page_Error(Object sender, EventArgs e) {
String message = "<font face=verdana color=red>"
......
http://www.microsoft.com/china/msdn/events/webcasts/shared/webcast/Series/MVC.aspx
http://www.cnblogs.com/chsword/archive/2009/03/11/zd_mvc1.html
jQuery¿ò¼Üѧϰ:http://www.zz68.net/WebDesign/js/200907/0H611P2009.html
ASP.NET ÖеÄÉè¼Æģʽ֮MVCƪ:http://www.cnblogs.com/superhasty/archive/2005/06/08 ......
±¾ÎĵØÖ·: jQuery Ajax È«½âÎö
±¾ÎÄ×÷ÕߣºQLeelulu
תÔØÇë±êÃ÷³ö´¦£¡
jQueryȷʵÊÇÒ»¸öͦºÃµÄÇáÁ¿¼¶µÄJS¿ò¼Ü£¬ÄÜ°ïÖúÎÒÃÇ¿ìËٵĿª·¢JSÓ¦Ó㬲¢ÔÚÒ»¶¨³Ì¶ÈÉϸıäÁËÎÒÃÇдJavaScript´úÂëµÄÏ°¹ß¡£
·Ï»°ÉÙ˵£¬Ö±½Ó½øÈëÕýÌ⣬ÎÒÃÇÏÈÀ´¿´Ò»Ð©¼òµ¥µÄ·½·¨£¬ÕâЩ·½·¨¶¼ÊǶÔjQuery.ajax()½øÐзâ×°ÒÔ·½±ãÎÒÃÇʹÓõķ½·¨£¬µ±È»£¬È ......