AJAXµ÷Óà ASP.net ±¾µØÎļþϵͳµÄ¹ÖÎÊÌâ
×î½ü¿ª·¢ExtÓ¦Óã¬Ê¹ÓÃajaxÇëÇóÊý¾Ýʱ£¬Óöµ½ÁËÇëÇóÊý¾ÝÒÔ·µ»Ø£¬µ«IEÀïÈ´ÎÞ·¨ÏÔʾµÄ¹ÖÎÊÌâ¡£
ʹÓÃHTTPWatch²é¿´£¬·¢ÏÖERROR_INTERNET_CONNECTION_RESET¡£
ʹÓÃFireFoxºÍgoogleä¯ÀÀÆ÷¶¼Ã»ÓÐÎÊÌ⣬ÍøÉϲéÕÒ˵ÍøÕ¾·ÅÔÚIISÉÏûÓÐÎÊÌ⣬ÊÔÑéºóÖ¤Ã÷ÓÐЧ¡£
µ«Í¬Ê¿ª·¢Óûú´ó²¿·Ö¶¼ÊÇXPϵͳ£¬Óв¿·Ö»¹ÊÇHOME°æ£¬Òò´Ë¸ÃÎÊÌâ±ØÐëÕÒµ½ÔÒò½â¾ö²ÅÐС£·¢ÏÖPOSTÇëÇó¸ÄΪGETÇëÇóÒ²²»»á³öÕâ¸öÎÊÌâ¡£
ÔÙ½øÒ»²½µÄ´óµ¨¼ÙÉ裬СÐÄÇóÖ¤¡£
ÔÚProcessRequest×îºóÔö¼Ó
context.Request.InputStream.ReadByte();
ºóÎÊÌâ³¹µ×½â¾ö
ÕâÖ¤Ã÷ÁËÎÒ֮ǰµÄ¼ÙÉè
Çé¿ö¿ÉÄÜÊÇÓÉÓÚʹÓÃÎļþ·½Ê½ÏµÍ³µÄÍøÕ¾£¬µ÷ÊÔÔËÐÐʱʹÓõÄÊÇASP.NET Development Server¶ø·ÇIIS£¬Òò´ËÔËÐлúÖÆÉÏÓëIIS´æÔÚ²»Í¬¡£
¼ì²é´úÂë·¢ÏÖ£¬´¦Àí¸ÃÇëÇóʱ£¬Ö»»ñÈ¡ÁËURLÉϵIJ¿·ÖÄÚÈÝ£¬²¢Î´¶ÔPOSTÄÚÈݲ¿·Ö½øÐлñÈ¡¡£
´Ëʱ¿ÉÄÜASP.NET Development Server²¢Î´´ÓIEÁ´½Ó¹ýÀ´µÄSocketÖжÁÈ¡Ê£Óಿ·Ö£¬¶ø³ÌÐò´¦ÀíÍê³Éºó·þÎñÆ÷¶Ë·¢Ëͽá¹ûÍê³Éºó¸ÃSocketÁ´½Ó¶Ïµô£¬¶øIEÈÏΪÊý¾Ý»¹Ã»Óз¢ËÍÍêÒò´Ë±¨ÁËERROR_INTERNET_CONNECTION_RESET´íÎó¡£
Ïà¹ØÎĵµ£º
Èç¹ûÄú´´½¨µÄÍøÒ³½«ÓÉʹÓò»Í¬ÓïÑÔµÄÓû§ÔĶÁ£¬Ôò±ØÐëΪÕâЩ¶ÁÕßÌṩÓÃËûÃÇ×Ô¼ºµÄÓïÑԲ鿴ÍøÒ³µÄ·½·¨¡£Ò»ÖÖ·½·¨ÊÇ·Ö±ðÓø÷ÓïÑÔÖØд´½¨Ò³Ã棬µ«ÕâÖÖ·½·¨¿ÉÄÜÐèÒª´óÁ¿¹¤×÷Á¿¡¢ÈÝÒ׳ö´í²¢ÇÒÔÚ¸ü¸ÄÔʼҳʱºÜÄÑά»¤¡£ASP.NET ΪÄúÌṩÁËÒ»ÖÖ·½·¨£¬Ê¹ÓÃÕâÖÖ·½·¨´´½¨µÄÒ³¿ÉÒÔ¸ù¾Ýä¯ÀÀÆ÷µÄÊ×Ñ¡ÓïÑÔÉèÖûòÓû§ÏÔʽѡÔñµÄÓïÑÔ»ñÈ¡ÄÚ ......
µÚ 1 ²¿·Ö: Ajax ¼ò½é
Ajax ÓÉ HTML¡¢JavaScript¡¢DHTML ºÍ DOM ×é³É£¬ÕâÒ»½Ü³öµÄ·½·¨¿ÉÒÔ½«±¿×¾µÄ Web ½çÃæת»¯³É½»»¥Ð﵀ Ajax Ó¦ÓóÌÐò¡£±¾ÎĵÄ×÷ÕßÊÇһλ Ajax ר¼Ò£¬ËûÑÝʾÁËÕâЩ¼¼ÊõÈçºÎÐͬ¹¤× ......
Õâƪ½Ì³Ì̽ÌÖASP.NET MVC¿ØÖÆÆ÷£¬¿ØÖÆÆ÷actionºÍaction result¡£Íê³É´Ë½Ì³Ìºó£¬Äã»á¶®µÃ¿ØÖÆÆ÷ÈçºÎ±»ÓÃÀ´¿ØÖÆ·ÃÎÊÕßÓëASP.NET MVCÍøÕ¾µÄ½»»¥·½Ê½¡£
Àí½â¿ØÖÆÆ÷
MVC ¿ØÖÆÆ÷¸ºÔð¶ÔASP.NET MVCÍøÕ¾µÄÇëÇó×÷³ö»ØÓ¦¡£Ã¿Ò»¸öä¯ÀÀÆ÷ÇëÇ󶼱»Ó³Éäµ½Ò»¸öÌض¨µÄ¿ØÖÆÆ÷¡£ÀýÈ磬ÏëÏóÄãÔÚä¯ÀÀÆ÷µØÖ·À¸ÊäÈëÒÔÏÂURL:
http://localhost/P ......
Á˽âJavaScriptµÄÈ˶¼ÖªµÀJavaScriptµÄthis²»×ÜÊÇÖ¸Ïòµ±Ç°¶ÔÏ󣬺¯Êý»òÀàÖеÄthisÖ¸ÏòÓëµ÷ÓÃÕâ¸öº¯ÊýµÄ¶ÔÏóÒÔ¼°ÉÏÏÂÎÄ»·¾³ÊÇϢϢÏà¹ØµÄ¡£ÈçÔÚÈ«¾Ö×÷ÓÃÓòµ÷ÓÃÒ»¸öº¬thisµÄ¶ÔÏ󣬴Ëʱµ±Ç°¶ÔÏóµÄthisÖ¸ÏòµÄÊÇwindow¡£ÎªÁËÈÃthisµÄÖ¸Ïò·ûºÏ×Ô¼ºµÄÒâÔ¸£¬JavaScriptÌṩÁËÁ½¸ö·½·¨ÓÃÒԸıäthisµÄÖ¸Ïò£¬ËüÃÇÊÇcallºÍapply£¬µ±È»Ò²Ó ......