AJAX¿Ø¼þ2
AJAX¿Ø¼þ2
17. MutuallyExclusiveCheckBox
¡¾¹¦ÄܸÅÊö¡¿
»¥³â¸´Ñ¡¿ò¾ÍÏñRadioButtonÒ»Ñù£¬Ó¦Óõij¡¾°ÊÇ£º“a number of choices are available but only one can be chosen”
¡¾Ï¸½Ú¡¿
(1)KeyÊôÐÔÓÃÀ´·Ö×é¾ÍÏñRdiolistGroupÒ»Ñù
(2)argetControlIDÓÃÀ´°ó¶¨ÒÑÓеÄCheckBox
¡¾´úÂëʾÒâ¡¿
<ajaxToolkit:MutuallyExclusiveCheckboxExtender runat="server"
ID="MustHaveGuestBedroomCheckBoxEx"
TargetControlID="MustHaveGuestBedroomCheckBox"
Key="GuestBedroomCheckBoxes" />
18. NoBot
¡¾¹¦ÄܸÅÊö¡¿
ÌṩÁ˼òµ¥µÄCaptcha ͼÁé²âÊÔ ÓÃÀ´ÆÁ±Îbot/spam À¬»øÐÅÏ¢¡£ÊÇÒ»¸ö·´À¬»øÐÅÏ¢¿Ø¼þ¡£ÎÒ²éÁËÒ»ÏÂ×ÊÁÏ£¬ÎÒµÄÀí½âÊÇ£º±ÈÈçÄãµã»÷Ò»¸ö°´Å¥ÐèÒªÒ»ÃëÖÓµÄʱ¼ä£¬¶øÕâÒ»ÃëÖÓµÄʱ¼äÄã²»¿ÉÄÜÔÙ×öÆäËûµÄ²Ù×÷±ÈÈçÔÙµãÒ»´Î£»ÕâÑùÇø·Ö³öÁËÈ˺ͻúÆ÷¡£±ÜÃâ»úÆ÷ÈË×Ô¶¯µã»÷ ×¢²á ±©Á¦ÆƽâÖ®ÀàµÄÊÂÇé
¡¾ ϸ½Ú¡¿
(1)OnGenerateChallengeAndResponse Õâ¸öÊôÐÔÊÇEventHandler<NoBotEventArgs> µ÷Ó÷þÎñÆ÷¶ËµÄ·½·¨£¬×¢Òâ·½·¨Ç©Ãû
ÀýÈ磺 protected void CustomChallengeResponse(object sender, NoBotEventArgs e) {……}
¡¾Ê¾Òâ´úÂë¡¿
´úÂëʾÒ⣺
<ajaxToolkit:NoBot ID="NoBot2" runat="server"
OnGenerateChallengeAndResponse="CustomChallengeResponse"
ResponseMinimumDelaySeconds="2" CutoffWindowSeconds="60"
CutoffMaximumInstances="5" />
19. NumericUpDown
¡¾¹¦ÄܸÅÊö¡¿
ʵÏÖWinformÀïÃæµÄUpdown¿Ø¼þ£¬¿ÉÒÔ×Ô¶¨Òå×î´óÖµ×îСֵÔö¼õ²½³¤£¬Í¬Ê±»¹¿ÉÒÔʹÓÃÖµÁбí»òÕßµ÷ÓÃWeb ServiceÀ´¾ö¶¨ÏÂÒ»¸öÖµÊÇʲô¡£ÉÏÏ°´Å¥µÄͼƬͬÑùÊÇ¿ÉÒÔ×Ô¶¨ÒåµÄ¡£
¡¾Ï¸½Ú¡¿
(1)ÆÕͨÕûÊýÔö¼õ
(2)ÖµÁбíÑ»·ÏÔʾ±ÈÈçÏÂÃæµÄµÚ¶þ¸öÀý×ÓRefValues
(3)µ÷ÓÃWeb ServiceµÄ¸ñʽ£º
<ajaxToolkit:NumericUpDownExtender ID="NUD1" runat="server"
TargetControlID="TextBox1" Width="100" RefValues="January;February;March;April"
TargetButtonDownID="Button1" TargetButtonUpID="Button2"
ServiceDownPath="WebService1.asmx" ServiceDownMethod="PrevValue"
Se
Ïà¹ØÎĵµ£º
¹«Ë¾×î½ü¸øÎÒÒ»¸öÈÎÎñ£º°ÑÒ»¸öÓÃiframe×öµÄÁôÑÔ°å¸ÄдÓÃAjax×ö£¬ÕâÑù×öµÄÔÒòÊÇ£º¶ÔËÑË÷ÒýÇæµÄÓÅ»¯¡£ËäÈ»ºÜÔç¾ÍÖªµÀAjax¿ÉÒÔ×ö¾Ö²¿Ë¢Ð£¬µ«ÒòΪ×Ô¼ºÊǸձÏÒµÈëÖ°µÄ²ËÄñ£¬½ö½öÊÇÖªµÀÓÐÕâô¸ö¼¼Êõ¿ÉÒÔ×öÕâÑùÒ»¹¦ÄܶøÒÑ¡£Ò»±ßѧһ±ß×ö¡£ÏÖÔÚÕ⹦ÄÜ»¹Ã»ÍêȫŪºÃ£¬ÏÈ×ܽáÏÂ˼·ÒÔ±ã¸üºÃµÄѧϰ£º
ÒµÎñÂß¼£ºÔÚÏßÑÐÌֻᣬÌáÎÊÕßÒ³ ......
just get a json
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<mce:script src="jquery-1.3.2.min.js" mce_src="jq ......
ÈçºÎÔÚ¿Í»§¶ËÖ±½Óµ÷ÓÃWebServiceÖеķ½·¨£¿
ÕâÀï½áºÏ¾Ñé×Ô¼ºÐ´Ò»Ð´
1.Ê×ÏÈн¨Ò»¸ö ASP.NET AJAX-Enabled Web Site,ÕâÑùϵͳΪÎÒÃÇ×Ô¶¯ÅäÖúÃÁË»·¾³£¬ÕâÖ÷ÒªÌåÏÖÔÚWeb.configÕâ¸öÎļþÉÏ£¬Èç¹ûÒÑÓÐÍøÕ¾²»ÊÇASP.NET AJAX-Enabled Web SiteÒ²¿ÉÒÔ¶ÔÕÕÐÞ¸ÄÏÂWeb.config£¬Ò²¿ÉÒÔ´ïµ½ÏàͬµÄЧ¹û¡£
2.н¨Ò»¸öweb·þÎñ£¬WebSer ......
Ajax¿Ø¼þ½é紹
1. Accordion
¡¾¹¦ÄܸÅÊö¡¿Accordion¿ÉÒÔÈÃÄãÉè¼Æ¶à¸öpanel ²¢ÇÒÒ»´ÎÖ»ÏÔʾһ¸öPanel .ÔÚÒ³ÃæÉϵÄÏÔʾЧ¹û¾ÍÏñÊÇʹÓÃÁ˶à¸öCollapsiblePanelsÖ»²»¹ýÿһ´ÎÖ»Õ¹¿ªÆäÖÐÒ»¸öCollapsiblePanel.Accordion¿Ø¼þÄÚ²¿°üº¬ÁËÈô¸É¸öAccordionPane£¬Ã¿Ò»¸öAccordionPaneµÄtemplateÀï°üÀ¨Á˶ÔÆäHeaderºÍContentµÄ¶ ......