AJAX Control ToolkitµÄ°²×°
ĬÈÏÇé¿öÏÂAJAX Control Toolkit²¢Ã»Óа²×°µ½VS2008ÖУ¬¿ª·¢ÈËÔ±ÐèÒªµ¥¶ÀÏÂÔز¢½øÐа²×°¡£ÍøÖ·ÈçÏ£ºhttp://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=27326 £¬AJAX Control ToolkitÊÇÒ»¸ö²»¶Ï¸üеÄÏîÄ¿£¬¸ÃÍøÒ³½«Ã¿¶Îʱ¼äÄÚ·¢²¼¶Ô¸Ã¹¤¾ß°üµÄ¸üС£ÔÚ¸ÃÒ³ÃæÖÐÑ¡ÔñAJAXControlToolkitSource.zip¡£ÔÚµ¯³öÐí¿ÉÐÒé´°¿ÚÖе¥»÷I AGREE£¬¸Ã´°¿ÚÊÇÒ»¸öµäÐ͵ÄAJAX Control Toolkit¿Ø¼þÓ¦Óá£ÏÂÔغó½âѹËõºó»á¿´Èý¸öÎļþ¼ÐºÍÒ»¸öÃûΪAJAX Control Toolkit.slnµÄ½â¾ö·½°¸Îļþ£¬ÔÚVS2008Öдò¿ª¸Ã½â¾ö·½°¸×ÊÔ´Îļþ»á¿´µ½½â¾ö·½°¸×ÊÔ´¹ÜÀíÆ÷ÖÐÓÐ4¸öÏîÄ¿¡£
¸÷¸öÏîÄ¿·Ö±ðÈçÏÂËùʾ¡£
1¡¢AJAXControlToolkit£º°üº¬Control ToolkitÖÐËùÓпؼþµÄÔ´´úÂë¡£
2¡¢SampleWebSite:°üº¬µÚ¸ö¿Ø¼þµÄʹÓ÷½·¨µÄʾÀýÍøÕ¾£¬¸Ã¾ÈÃüÍøÕ¾¶ÔÓÚѧϰAJAX Control ToolkitÖеĿؼþ·Ç³£ÓаïÖú¡£
3¡¢ToolkitTests:°üº¬ËùÓпؼþµÄ×Ô¶¯»¯²âÊÔ´úÂë¡£
ΪÁËÄÜÔÚVS2008ÖÐʹÓÃAJAX Control Toolkit¿Ø¼þ£¬ÐèÒª½«ÆäÌí¼Óµ½VS2008µÄ¹¤¾ßÏäÖС£½øÈ빤¾ßÏäµÄAJAX ExtensionsÀ¸ÓÒ»÷Êó±ê£¬Ñ¡Ôñ“Ñ¡ÔñÏI)……”²Ëµ¥£¬½«³öÈçÏÂͼ£º
Ôڸô°¿ÚÖе¥»÷“ä¯ÀÀ”°´Å¥£¬ÔÚµ¯³öµÄÑ¡ÔñÎļþ´°¿ÚÖÐÑ¡ÔñSampleWebSiteϵÄBinÎļþ¼ÐϵÄAJAX Control Toolkit.dllÎļþ¡£
µ¥»÷È·¶¨°´Å¥AJAX Control Toolkit±ãÌí¼Óµ½ÁËAJAX Extensions¹¤¾ßÀ¸ÏÂÃ棬ÈçÏÂͼ£º
×¢£ºAJAX Control Toolkit¿Ø¼þÿ´Î´ò¿ªVS2008ºó¶¼µÃÖØÐÂÌí¼Ó¡£
Ïà¹ØÎĵµ£º
´ó¼ÒºÃ£¬×î½üʹÓÃjqueryµÄajax¹¦ÄÜ£¬µ«ÊÇ·¢ÏÖ$.ajax()·½·¨²»ÄÜÌá½»µ½ºǫ́£¬ÎÒÊÇÓõÄÊÇIE7£¬
ÆäËû·½·¨ÈçgetºÍpostûÓÐÊÔ¹ý£¬µ«ÓÉapiËùÖªµ×²ã¶¼ÊÇÓÃajax·½·¨À´ÊµÏֵġ£
ͨ¹ý²é¿´Ô´Âë·¢ÏÖ
// Create the request object; Microsoft failed to properly
// implement the XMLHttpRequest in IE7, so we use the ActiveXObje ......
1\ÒýÓÃajax.dll»òÕßajaxpro.dllµ½vs2005¹¤³ÌÖÐ
ÔÚweb.configÎļþÖеģ¼system.web£¾¼ÓÈëajaxÉèÖÃ
£¼httpHandlers£¾
¡¡£¼add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/£¾
£¼/httpHandlers£¾
2\±àдajax´úÂë
&nb ......
Ò»¡¢ajaxµÄÈëÃÅ
1¡¢XMLHttpRequest¶ÔÏóµÄʹÓã¨Ê¹ÓÃXMLHttpRequest½âÎöxmlÎļþ£©
onreadystatechange
Ö¸¶¨µ±readyStateÊôÐԸıäʱµÄʼþ´¦Àí¾ä±ú
open()
´´½¨Ò»¸öеÄhttpÇëÇ󣬲¢Ö¸¶¨´ËÇëÇóµÄ·½·¨¡¢URLµÈÐÅÏ¢
send()
·¢ËÍÇëÇóµ½http·þÎñÆ÷²¢½ÓÊÕ»ØÓ¦
& ......
ÈçºÎ¿ª·¢°²È«µÄAJAXÓ¦ÓÃ
AJAX¼¼ÊõÒѾÊÇÏÖÔÚ×îÁ÷ÐеÄWebÓ¦Óÿª·¢¼¼ÊõÁË£¬µ«ÊÇÓë´Ëͬʱ£¬WebÓ¦ÓÃÒ²³ÉÁËÕâ¸öIT¼Ü¹¹Öа²È«×Èõ£¬×îÈÝÒ×Êܵ½¹¥»÷µÄ²¿·Ö£¬AJAXÓ¦ÓÃÏà±È½ÏÓ봫ͳµÄWebÓ¦Ó㬴ó´óÔö¼ÓÁË¿Í»§¶ËÓë·þÎñÆ÷Ö®¼äµÄ½»»¥£¬Í¬Ê±Ò²Ê¹µÃһЩºǫ́µÄÒµÎñÂß¼½Ó¿Ú±©Â¶¸øÁË¿Í»§¶Ë£¬Èç¹û·þÎñÆ÷¶ËûÓÐ×ã¹»µÄ±£»¤»òÕßûÓжԿͻ§¶ËÇ ......