VS2005ÖÐajax°²×°Ö¸ÄÏ
VS2005ÖÐajax°²×°Ö¸ÄÏ
ÒÔÏÂÊÇÊÕ¼¯¹ØÓÚAjaxControlToolkit°²×°µÄһƪÎÄÕ£¬¸ÐлÔ×÷Õß
AjaxControlToolkitÏÂÔØhttp://ajax.asp.net/downloads/default.aspx?tabid=47
http://www.codeplex.com/AtlasControlToolkit/Release/ProjectReleases.aspx?ReleaseId=1425
»·¾³ÉèÖÃÈçÏ£º
ÏÂÔØÍê
ASPAJAXExtSetup.msi °²×°¸üкóÔÚÄãµÄϵͳÅÌϵģ¨ÒÔCÅÌΪÀý£© ³öÏÖÕâ¸ö Îļþ¼Ð£º
C:\Program
Files\Microsoft asp.NET\ASP.NET 2.0 ajax
Extensions\v1.0.61025
°²×°Õâ¸öºóÎÒÃǾͿÉÒÔ´´½¨Asp.net
AJAXEnabledWebSiteÕ¾µãÁË£¬ÕâÆäʵ¾ÍÊǸöajax.netÍøÕ¾µÄÄ£°å¡£
µ«ÊÇÎÒÃÇÏÖÔÚ»¹²»ÄÜʹÓÃ΢Èí¸øÎÒÃÇ¿ª·¢ºÃµÄajax¿Ø¼þ
¡£ÒªÏëÖªµÀÔõôʹÓÃajax.net¿Ø¼þÍùÏ¿´¡£
ÏÂÔØAjaxControlToolkit £¬ÉÏÃæÁ½¸öÒ»¸öÊÇ´øÔ´´úÂëµÄ
Ò»¸öÊDz»´øÔ´´úÂëµÄtoolkit¡£½¨ÒéÏÂÔØ´øÔ´´úÂëµÄ toolkit¡£ÏÂÔØÍê³Éºó°Ñ¸ÃÎļþ½âѹµ½£º
C:\Program
Files\Microsoft asp.NET\ASP.NET 2.0 ajax
Extensions\v1.0.61025\AjaxContronlToolkit\
Ë«»÷ÔËÐÐAjaxControlToolkit.sln¡£
ÓÃvs2005
´ò¿ªÕâ¸ösln£¬±àÒëTemplateVSIÕâ¸öÏîÄ¿ºó£¬°ÑÔÚC:\Program Files\Microsoft asp.NET\ASP.NET 2.0 AJAX
Extensions\SampleWebSite\BinÏÂÃæÉú³ÉµÄAjaxControlToolkit.dllºÍ
AjaxControlToolkit.pdb¸´ÖƵ½
C:\Program Files\Microsoft asp.NET\ASP.NET 2.0
AJAX Extensions\BinariesÎļþ¼ÐÏÂÃ棬ÕâÑùÎÒÃǾͿÉÒÔÔÚvs2005ÖÐʹÓÃajax.netÕâЩ¿Ø¼þÁË¡£
н¨Ò»¸öAjax
ControlToolkitWebSite
ÀàÐ͵ÄwebÏîÄ¿¡£ÔÚ¹¤¾ßÀ¸ÖÐÐÂÌí¼ÓÒ»¸öÑ¡ÏÆðÃû£ºAjaxControltoolkit
ÔÚÕâ¸öÑ¡ÏÉÏÓÒ¼üÑ¡ÔñÏî->ä¯ÀÀÕÒµ½¸Õ²Å¸´ÖƹýÈ¥µÄAjaxControlToolkit.dll£¬Ìí¼Ó½øÀ´¡£ÕâÑùÎÒÃǾÍajax.net¿Ø¼þ³É¹¦ÒýÓõ½vs2005ÖÐÁË
¡£
Ïà¹ØÎĵµ£º
Êý¾Ý¿âÉè¼Æ
±¾ÊµÀýʹÓÃÃûΪpostalcodeµÄÊý¾Ý¿â±í£¬°üº¬µÄ²¿·ÖÊý¾ÝÈçͼ1.4Ëùʾ¡£¾ßÌåµÄ´´½¨Êý¾Ý±íÓï¾äÈçÏ£º
CREATE TABLE 'postalcode' (
'id' int(11) NOT NULL auto_increment,
'area' varchar(255) NOT NULL,
'city' varchar(255) NOT NULL,
'code' varchar(6) NOT NULL,
&n ......
¼¼ÊõÒªµã
ÔÚ»ù±¾ÔÀíµÄ½éÉÜÖУ¬Á˽⵽ͨ¹ýÔÚ¸¸½ÚµãÄÚ¶¯Ì¬´´½¨×ӽڵ㣬²¢ÀûÓÃÑùʽ±íËõ½øÍê³ÉÊ÷ÐÎÁбíµÄ»ù±¾¿ò¼Ü¡£³ýÁËÕâÒ»µãÍ⣬»¹ÓÐÏÂÃæһЩÎÊÌâÐèÒª¿¼ÂÇ¡£
1£®½«¸¸½ÚµãËùÓеÄ×Ó½Úµã·ÅÈëÒ»¸öÈÝÆ÷ÖÐ
»ù±¾ÔÀíÒ³ÃæÖнö°üº¬ÁË´´½¨×Ó½ÚµãµÄ¹¦ÄÜ£¬²»¿ÉÒÔ½«´´½¨ºÃµÄ½ÚµãÔÙ½øÐйرղÙ×÷¡£Êµ¼ÊÓ¦ÓÃÖв˵¥×ÜÊÇ°üº¬´ò¿ªºÍ¹Ø±ÕÁ½ÖÖ² ......
½â¾öAJAX(JSP)ÖÐÎÄÂÒÂë»òÌØÊâ·ûºÅ£¨&£©µÄ´«µÝÎÊÌâ----> ±¾ÈËÔ´´£¨244796562@qq.com£©
************************js******************************
...
...
var s = encodeURIComponent("ÖÐÎÄ&English&@#$%!");
xmlReq.send("test", "txt=" + s, callback, callerror);//ͨ¹ýXMLHTTPRequest·¢ËÍ×Ö·ûÊý¾ ......
£¨×ªÌû£©
¡¡¡¡Ò»Ìáµ½ÈçºÎÔÚǰ̨JSµ÷Óúǫ́C#·½·¨£¬AJAX³ÉΪÁ˱ØÈ»µÄÏë·¨¡£
¡¡¡¡Ö»ÊÇʵÏÖµÄϸ½Ú²ÉÓÃAJAX 1.0»òÕßAjaxProµÄÇø±ð¡£
¡¡¡¡ÆäʵÈç¹û²»ÓÃAJAX£¬ÎÒÃÇÒ²Äܹ»ºÜ·½±ãµØÀûÓÃJSµ÷Óúǫ́·½·¨¡£
¡¡¡¡²½ÖèÈçÏ£º
¡¡¡¡1 ǰ̨·ÅÒ»¸ö°´Å¥¡£ÉèÖÃΪÒþ²Ø¡£×¢Ò⣺²»ÄÜÖ±½ÓÉèÖÃVisible=falseµÄ· ......
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript&quo ......