¡¡¡¡Ê×Ïȼì²éWeb.configÎļþÀïÊÇ·ñÊÇÈçÏ´úÂ룺
¡¡¡¡´ò¿ªVS2005´´½¨ÐÂÏîÄ¿£¬Ñ¡ÔñASP.NET¡¡AJAXÏîÄ¿£¬È»ºó°Ñ¸ÃÏîÄ¿Web.configÎļþµÄÄÚÈÝÈ«²¿¸´ÖƵ½Ä㱨´íµÄWeb.configÎļþÀï¡£
¡¡¡¡Èç¹ûÕâ¸ö°ì·¨Î´Äܽâ¾ö°ì·¨Çë²é¿´¸ÃÏîÄ¿¸ùĿ¼µÄBinÎļþ¼ÐÄÚÊÇ·ñÓÐSystem.Web.Extensions.Design.dll¡¢System.Web.Extensions.dll¡¢AJAXExtensionsToolbox.dllÕâÈý¸öÎļþ¡£ÉÏÃæÄǸö°ì·¨Ã»½â¾öÎÊÌ⣬ÎÊÌâ¾ÍÒ»¶¨ÊÇÕ⣬°ÑÕâÈý¸ödllÎļþ¸´ÖƵ½ÏîÄ¿µÄ¸ùĿ¼Ï£¬ÕâÈý¸öÎļþÔÚC:\Program¡¡Files\Microsoft¡¡ASP.NET\ASP.NET¡¡2.0¡¡AJAX¡¡Extensions\v1.0.61025Ŀ¼Ï¡£¸´ÖƵ½BinĿ¼ÎÊÌâ½â¾ö¡£ ......
¡¡¡¡Ê×Ïȼì²éWeb.configÎļþÀïÊÇ·ñÊÇÈçÏ´úÂ룺
¡¡¡¡´ò¿ªVS2005´´½¨ÐÂÏîÄ¿£¬Ñ¡ÔñASP.NET¡¡AJAXÏîÄ¿£¬È»ºó°Ñ¸ÃÏîÄ¿Web.configÎļþµÄÄÚÈÝÈ«²¿¸´ÖƵ½Ä㱨´íµÄWeb.configÎļþÀï¡£
¡¡¡¡Èç¹ûÕâ¸ö°ì·¨Î´Äܽâ¾ö°ì·¨Çë²é¿´¸ÃÏîÄ¿¸ùĿ¼µÄBinÎļþ¼ÐÄÚÊÇ·ñÓÐSystem.Web.Extensions.Design.dll¡¢System.Web.Extensions.dll¡¢AJAXExtensionsToolbox.dllÕâÈý¸öÎļþ¡£ÉÏÃæÄǸö°ì·¨Ã»½â¾öÎÊÌ⣬ÎÊÌâ¾ÍÒ»¶¨ÊÇÕ⣬°ÑÕâÈý¸ödllÎļþ¸´ÖƵ½ÏîÄ¿µÄ¸ùĿ¼Ï£¬ÕâÈý¸öÎļþÔÚC:\Program¡¡Files\Microsoft¡¡ASP.NET\ASP.NET¡¡2.0¡¡AJAX¡¡Extensions\v1.0.61025Ŀ¼Ï¡£¸´ÖƵ½BinĿ¼ÎÊÌâ½â¾ö¡£ ......
ÕªÒª
±¾ÎĽ«Ê×ÏȽéÉÜÒ»ÏÂÎÄÕµÄд×÷±³¾°ºÍÓõ½µÄÏà¹Ø¼¼Êõ¡£È»ºó½«·Ö±ðʹÓÃÆÓËصÄAjax¼¼ÊõºÍASP.NET AJAX¿ò¼Ü·Ö±ðʵÏÖ¾µäµÄ“Hello£¡XX”£¬Í¨¹ýÁ½¸öСÀý×Ó£¬Ê¹ÅóÓÑÃǶÔÕâ¸ö¿ò¼ÜµÄÌصãºÍ¿ò¼ÜµÄʹÓ÷½·¨ÓÐÒ»¸ö³õ²½µÄÈÏʶ¡£
Ç°ÑÔ
ÎÒÏ룬Èç¹û½ñÌìÄĸöWeb¿ª·¢ÈËԱ˵ûÓÐÌý˵¹ýAjax¼¼Êõ£¬ÄÇʵÔÚÌ«²»¿É˼ÒéÁË¡£È·Êµ£¬½ü¼¸Ä꣬AjaxÕâ¸ö´ÊÒÔ³¬ºõÏëÏóµÄËٶȺì±éWeb¿ª·¢ÁìÓò£¬´óµ½Google¡¢ÍøÒ×£¬Ð¡µ½Ò»Ð©µØ·½¹«Ë¾µÄÖ÷Ò³£¬¶¼Æձ鿪ʼ¼ÓÈëAjaxÔªËØ¡£ÕâÖÖ¼¼Êõ£¬¸øWeb¿ª·¢´øÀ´Á˸ïÃüÐÔµÄÒâÒ壬ҲʹµÃWeb²úÆ·¼°B/SϵͳµÄÓû§ÌåÑé´ó´ó¸ÄÉÆ¡£
È»¶ø£¬AjaxÓÃÆðÀ´»ªÀö¡¢Ë¬¿ì£¬¿ª·¢ÆðÀ´È´À§ÄÑÖØÖØ¡£JavaScriptÓïÑÔ¹ÖÒìµÄÓï·¨¡¢Ã»ÓÐIDEÖ§³ÖÒÔ¼°ÄÑÒÔµ÷ÊÔ£¬¶¼³ÉΪAjax¿ª·¢µÄÓ²ÉË¡£ÁíÍâB/SϵͳºÍC/S²»Í¬£¬ä¯ÀÀÆ÷µÄ¶àÑùÐÔÒ²¸øAjaxµÄ¿ª·¢´øÀ´ºÜ¶àÀ§ÄÑ£¬Ê¹µÃÎÒÃÇÔÚ×öAjaxÓ¦ÓÃʱ£¬²»µÃ²»¿¼Âǵ½¸÷ÖÖä¯ÀÀÆ÷µÄ²îÒ죬¿ª·¢¹ý³ÌÍ´¿àÖÁ¼«¡£
Õë¶ÔÕâÖÖÇé¿ö£¬¸÷ÖÖAjax¿ò¼ÜÓ¦Ô˶øÉú¡£ÕâÆäÖеÄٮٮÕߣ¬±ãÊÇ΢ÈíÍƳöµÄASP.NET AJAX¿ò¼Ü¡£Ëü²»½ö¸øʹµÃ¿ª·¢AjaxÓ¦ÓñäµÃÈÝÒ׺ ......
ÕªÒª
±¾ÎĽ«Ê×ÏȽéÉÜÒ»ÏÂÎÄÕµÄд×÷±³¾°ºÍÓõ½µÄÏà¹Ø¼¼Êõ¡£È»ºó½«·Ö±ðʹÓÃÆÓËصÄAjax¼¼ÊõºÍASP.NET AJAX¿ò¼Ü·Ö±ðʵÏÖ¾µäµÄ“Hello£¡XX”£¬Í¨¹ýÁ½¸öСÀý×Ó£¬Ê¹ÅóÓÑÃǶÔÕâ¸ö¿ò¼ÜµÄÌصãºÍ¿ò¼ÜµÄʹÓ÷½·¨ÓÐÒ»¸ö³õ²½µÄÈÏʶ¡£
Ç°ÑÔ
ÎÒÏ룬Èç¹û½ñÌìÄĸöWeb¿ª·¢ÈËԱ˵ûÓÐÌý˵¹ýAjax¼¼Êõ£¬ÄÇʵÔÚÌ«²»¿É˼ÒéÁË¡£È·Êµ£¬½ü¼¸Ä꣬AjaxÕâ¸ö´ÊÒÔ³¬ºõÏëÏóµÄËٶȺì±éWeb¿ª·¢ÁìÓò£¬´óµ½Google¡¢ÍøÒ×£¬Ð¡µ½Ò»Ð©µØ·½¹«Ë¾µÄÖ÷Ò³£¬¶¼Æձ鿪ʼ¼ÓÈëAjaxÔªËØ¡£ÕâÖÖ¼¼Êõ£¬¸øWeb¿ª·¢´øÀ´Á˸ïÃüÐÔµÄÒâÒ壬ҲʹµÃWeb²úÆ·¼°B/SϵͳµÄÓû§ÌåÑé´ó´ó¸ÄÉÆ¡£
È»¶ø£¬AjaxÓÃÆðÀ´»ªÀö¡¢Ë¬¿ì£¬¿ª·¢ÆðÀ´È´À§ÄÑÖØÖØ¡£JavaScriptÓïÑÔ¹ÖÒìµÄÓï·¨¡¢Ã»ÓÐIDEÖ§³ÖÒÔ¼°ÄÑÒÔµ÷ÊÔ£¬¶¼³ÉΪAjax¿ª·¢µÄÓ²ÉË¡£ÁíÍâB/SϵͳºÍC/S²»Í¬£¬ä¯ÀÀÆ÷µÄ¶àÑùÐÔÒ²¸øAjaxµÄ¿ª·¢´øÀ´ºÜ¶àÀ§ÄÑ£¬Ê¹µÃÎÒÃÇÔÚ×öAjaxÓ¦ÓÃʱ£¬²»µÃ²»¿¼Âǵ½¸÷ÖÖä¯ÀÀÆ÷µÄ²îÒ죬¿ª·¢¹ý³ÌÍ´¿àÖÁ¼«¡£
Õë¶ÔÕâÖÖÇé¿ö£¬¸÷ÖÖAjax¿ò¼ÜÓ¦Ô˶øÉú¡£ÕâÆäÖеÄٮٮÕߣ¬±ãÊÇ΢ÈíÍƳöµÄASP.NET AJAX¿ò¼Ü¡£Ëü²»½ö¸øʹµÃ¿ª·¢AjaxÓ¦ÓñäµÃÈÝÒ׺ ......
+++++++++++++++++++++++Ajax
~~~~~~~~~~~~~~~~~~~~~~~~~~
======= Ajax ¼¼Êõ ========
Ò»¡¢µÚÒ»¿Î ===¡· AJAX¸ÅÊöÓëIntelliJ°²×°
a.Ajax¶Á·¨Æäʵ²»ÊÇÎÒÃǶÁµÄ'°¢¼Ù¿Í˹'£¬×¢Òâרҵ»¯¡£
b.ÍõÐË¿ýÀÏʦÏȽ²Êµ¼ùÔÙ½²ÀíÂÛ¡£
c.¿ª·¢¹¤¾ß²»ÔÙÊÇeclipseÁË£¬ÒòΪajaxÖ÷Ҫдjavascript
d.ʲôÊÇajax?2005Äê2ÔÂÌá³öÀ´µÄ£¬¹úÄÚ¿ªÊ¼²Å2Äê¡£
²»Êǵ¥´¿µÄ¼¼Êõ£¬ÔÓºÍ5Ï
Ö÷ÒªÊÇXMLHttpRequestÒì²½´«Êä¶ÔÏó
Æä´ÎDom½øÐж¯Ì¬ÏÔʾºÍ½»»¥
×îºóXMLºÍXSLT½øÐÐÊý¾Ý½»»¥ºÍ´¦Àí
Asysnchroniouns Javascript and Xml
e.ËÄÌìÄÚÈÝ
AJAXµÄ˼ά·½Ê½
AJAXµÄ¼¼ÊõºËÐÄ
AJAXÓ¦ÓÃʵÀý
AJAXµÄÓÅȱµã
AJAX¿ª·¢¹¤¾ß
f.Àϼ¼Êõ¡¢ÐÂ˼Ïë
h.ajax¿ÉÒÔ×öÄÄЩ£¿²¿·ÖˢС¢Òì²½²Ù×÷
i.°²×°Èí¼þ£¬×Ô¼º¿´
¶þ¡¢µÚ¶þ¿Î ===¡· ʹÓÃIntelliJ¿ª·¢WebÏîÄ¿
a.ʹÓùý³Ì»¹ÊÇ×Ô¼º¶¯ÊÖ²ÅÄÜÁ˽⡣
b.¼òµ¥µÄ±íµ¥ÑéÖ¤
c.itellijµÄprojectÏ൱ÓÚmyeclpiseµÄworkspace
moduleÏ൱ÓÚmyeclipseµÄproject
d.µÚÒ»´ÎʹÓñØÐëÒªÖ¸¶¨jdk
e.flexÔ¤ÑÔÒÔºó»áºÜ»ð£¬ÓÐʱ¼ä¿ÉÒÔѧѧ
f.ÅäÖÃtomcat,µã»÷Ö®ºóÓкܶಿÊð·½Ê½£¬Ñ¡Ôñtomcat
h.¼òµ¥Ò»¸ö°¸Àý£¬Ò»¸öformÌøתµ½Ò»¸ö ......
===============ÏÂÆAjax
================
ʮһ¡¢µÚʮһ¿Î ===¡· ʹÓÃXHR¶ÔÏó·¢ËͺͽÓÊÜÊý¾Ý
a.¼ÌÐøÉÏÃæ²½Öè
2)×¢²á»Øµ÷º¯Êý,ֻдº¯ÊýÃû³Æ(Èç¹û¼ÓÁËÀ¨ºÅ£¬ÄÇô¾Í°Ñº¯Êý·µ»ØÖµ×¢²á¸ø»Øµ÷º¯Êý)
xmlHttp.onreadystatechange = callback;
3)ÉèÖÃÁ¬½ÓÐÅÏ¢
//µÚÒ»²ÎÊýÊÇHttpÇëÇó·½Ê½£¬Ò»°ãÑ¡Ôñget¡¢post
//µÚ¶þ²ÎÊýÊÇurlµØÖ·
//µÚÈý¸ö²ÎÊý±íʾÒì²½»¹ÊÇͬ²½£¬true±íʾÒì²½
xmlHttp.open("GET", "ajaxserver?name="+userName, true);
4)·¢ËÍÊý¾Ý¡¢¿ÉÊÇÓë·þÎñÆ÷½øÐн»»¥
//ͬ²½·½Ê½Ï£¬send»áÔÚ·þÎñÆ÷Êý¾Ý»ØÀ´ºó²ÅÖ´ÐÐÍê
//Òì²½·½Ê½Ï£¬send»áÁ¢¼´Ö´ÐÐÍê
xmlHttp.send(null);
5)½ÓÊÕÏìÓ¦Êý¾Ý
function callback(){
//Åж϶ÔÏó״̬½»»¥Íê³É
if (xmlHttp.readyState == 4){
//ÅжÏhttp½»»¥ÊÇ·ñ³É¹¦£¬http״̬Âë200
if(xmlHttp.status == 200){
//»ñµÃ·þÎñÆ÷·µ»ØµÄ´¿Îı¾Êý¾Ý
var responseText = xmlHttp.responseText;
//ÏÔʾµ½½çÃæ
document.getElementById("result").innerHTML = responseText;
}
}
}
Ê®¶þ¡¢µÚÊ®¶þ¿Î ===¡· ä¯ÀÀÆ÷Ç²âÊÔÓ빤¾ßÂþ̸
a.ûʲô¿ÉдµÄ£¬¶¼ÊÇһЩÈí¼þ ......
±¾ÊµÀýÖ»ÀûÓõ½JQueryÀà¿â±¾ÉíµÄº¯ÊýºÍ¹¦ÄÜ£¬²»ÐèÒªµÚÈý·½²å¼þµÄÖ§³Ö¡£ÁíÍ⣬ËùÓÐ±íµ¥ÐÅÏ¢¶¼ÊÇÀûÓÃPHPMailerÀà¿âÓʼþµÄÐÎʽ·¢Ë͸ø¹ÜÀíÔ±¡£Èç¹ûÄã¶ÔJQueryµÄ»ù±¾Óï·¨»¹²»ÊǺÜÊìϤ£¬ÇëËÑË÷±¾Õ¾µÄ½Ì³Ì×ÊÔ´¡£Èç¹ûÄã¶ÔPHPMailerÓ÷¨²»ÊìϤ£¬Çë²é¿´±¾Õ¾µÄÁíһƪÎÄÕ¡¶Ê¹ÓÃPHPMailerÀà¿â·¢Ë͵ç×ÓÓʼþ¡·¡£
µÚÒ»²½£¬´´½¨Ò»¸ö±íµ¥HTMLÒ³Ãæ
ÕâÀÎÒÃÇֻչʾÖ÷ÒªµÄ±íµ¥²¿·ÖHTML½á¹¹´úÂ룺
<div id="contact_form">
<form name="contact" method="post" action="">
<fieldset>
<label for="name" id="name_label">ÐÕÃû</label>
<input type="text" name="name" id="name" size="30" value="" class="text-input" />
<label class="error" for="name" id="name_error">´ËÏî±ØÌî</label>
&nbs ......
±¾ÊµÀýÖ»ÀûÓõ½JQueryÀà¿â±¾ÉíµÄº¯ÊýºÍ¹¦ÄÜ£¬²»ÐèÒªµÚÈý·½²å¼þµÄÖ§³Ö¡£ÁíÍ⣬ËùÓÐ±íµ¥ÐÅÏ¢¶¼ÊÇÀûÓÃPHPMailerÀà¿âÓʼþµÄÐÎʽ·¢Ë͸ø¹ÜÀíÔ±¡£Èç¹ûÄã¶ÔJQueryµÄ»ù±¾Óï·¨»¹²»ÊǺÜÊìϤ£¬ÇëËÑË÷±¾Õ¾µÄ½Ì³Ì×ÊÔ´¡£Èç¹ûÄã¶ÔPHPMailerÓ÷¨²»ÊìϤ£¬Çë²é¿´±¾Õ¾µÄÁíһƪÎÄÕ¡¶Ê¹ÓÃPHPMailerÀà¿â·¢Ë͵ç×ÓÓʼþ¡·¡£
µÚÒ»²½£¬´´½¨Ò»¸ö±íµ¥HTMLÒ³Ãæ
ÕâÀÎÒÃÇֻչʾÖ÷ÒªµÄ±íµ¥²¿·ÖHTML½á¹¹´úÂ룺
<div id="contact_form">
<form name="contact" method="post" action="">
<fieldset>
<label for="name" id="name_label">ÐÕÃû</label>
<input type="text" name="name" id="name" size="30" value="" class="text-input" />
<label class="error" for="name" id="name_error">´ËÏî±ØÌî</label>
&nbs ......
1.µ½http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33804
ÏÂÔØAJAX Control Toolkit - Binary
2.½âѹµ½C:\Program Files\Microsoft.NET\ADOMD.NET\90
3.visual studio н¨Ò»ÍøÕ¾£¬Ë«»÷default.aspx
4.´ò¿ª¹¤¾ßÏ䣬ÓÒ»÷н¨Ò»Ñ¡Ï£¬Ã÷ÃûΪAjax Control Toolkit
5.ÓÒ»÷Ajax Control ToolkiÑ¡Ï£¬“Ìí¼ÓÏî...”
6.´ò¿ªµÄ¶Ô»°¿òÖУ¬µ¥»÷“ÃüÃû¿Õ¼ä”£¬Ñ¡Ôñ×îÉÏÃæµÄËùÓÐÃüÃû¿Õ¼äΪ“AjaxControlToolkit”ÏµãÈ·¶¨
7.ÔÚAjax Control ToolkitÑ¡Ï¾Í»á¿´µ½Ìí¼ÓµÄ¿Ø¼þ ......