Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

AJAXÈçºÎÓÃÓÚWeb²¿¼þ

Ô­ÎĵØÖ·£ºhttp://sharethispoint.com/archive/2006/11/15/Build-web-parts-with-ajax.aspx
ÈçºÎÔÚ¿ª·¢Web²¿¼þʱʹÓÃajaxÄØ£¿ÎÒÃǽ«ÒÔÒ»¸öÑù×ÓÀàËÆMOSS 2007ÖÐKPIºÍBDC Web²¿¼þµÄWebPartΪÀýÀ´ËµÃ÷¡£Èç¹ûÄã¶ÔajaxÒ»µã¶¼²»Á˽â,ÍƼöѧϰTerryLeeµÄajaxÈëÃÅϵÁС£
ASP.net2.0ÓÐÒ»¸öºÜ¿áµÄÐÂÌØÐÔ½Ð×÷¿Í»§¶Ë½Å±¾»Øµ÷¡£½Å±¾»Øµ÷Ö÷ҪʹÎÒÃÇ¿ÉÒÔʹÓÃjavascriptµ÷Ó÷þÎñÆ÷¶Ë³ÌÐòÖеķ½·¨£¬È»ºó¸ù¾Ý½á¹ûÀ´×öһЩ²Ù×÷¡£Õâ¾ÍʹÎÒÃÇ¿ÉÒÔ¶¯Ì¬¸üÐÂÒ³ÃæµÄijһ²¿·ÖÄÚÈÝ£¬ÕýÈ罫ÔÚÎÒÃÇÏÂÃæµÄWebPartÖп´µ½µÄ£¬¶ø²»±ØË¢ÐÂÕûÒ³¡£¹ØÓÚÔÚ.net2.0ÖÐʹÓÿͻ§¶Ë½Å±¾»Øµ÷£¬¿ÉÒԲο¼ÏÂÃæµÄÎÄÕµØÖ·(http://msdn.microsoft.com/msdnmag/issues/04/08/CuttingEdge/)£¬ÆäÖÐ×ö³öÁËÏêϸµÄ½âÊÍ¡£µ«ÊÇÈçºÎÈ·ÇеĽ«ÆäʹÓÃÓëÎÒÃǵĴúÂëÖУ¬ÎÄÕ²¢Ã»ÓÐÏêϸ½éÉÜ¡£ÊÂʵÉϽű¾»Øµ÷ÌØÐÔÊǼ¯³Éµ½.netÖеģ¬ÎÒÃÇ¿ÉÒÔ·½±ãµÄÄÃÀ´Ê¹Óá£
±¾Ê¾ÀýÖÐÎÒÃǼÙÉèÓÐÕâôһ¸öWebPart£¬ËüÐèÒªºÜ³¤µÄʱ¼ä²ÅÄÜÏÔʾ³öÄÚÈÝ¡£ÎªÁ˽â¾öÕâ¸öÎÊÌ⣬¸øÓû§¸üºÃµÄÌåÑ飬ÎÒÃǾö¶¨ÈÃrender·½·¨ÔÚWebPart¸Õ¸ÕÔØÈëʱֻÊä³öÒ»¸ö¿ÕµÄdiv±êÇ©£¬È»ºóÎÒÃÇͨ¹ýajaxÀ´Ìæ»»divµÄÄÚÈÝ£¬Ê¹ÆäÏÔʾ³öʵ¼ÊÐèÒªµÄÄÚÈÝ¡£ÕâÑù£¬Óû§¾Í¿ÉÒÔÔÚÒ³ÃæÔØÈëºóÔÚÎÒÃǵÄWebPartÍê³ÉÄÚÈÝÔØÈëÇ°ÏÈ¿´Ò»¿´ÆäËûµÄÄÚÈÝ¡£
ÏÂÃæÎÒÃǾͿªÊ¼¡£
Ê×ÏÈÎÒÃÇÏÈ´´½¨Ò»¸öеÄWebPartÏîÄ¿¡£ÔÚÎÒÃǵÄWebPartÀàÖÐÌí¼ÓÏÂÃæµÄÃüÃû¿Õ¼ä¡£
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
ÏëҪʹ.netÖªµÀÎÒÃǵÄÀàҪʹÓýű¾»Øµ÷£¬±ØÐëʵÏÖSystem.Web.UI.IcallbackEventHandler½Ó¿Ú¡£
public class TreeViewRollUp:WebPart,ICallbackEventHandler
IcallBackEventHandler½Ó¿ÚÓÐÁ½¸ö·½·¨£¬public string GetCallbackResult()ºÍ public void RaiseCallbackEvent(string eventArgs)£¬ÉԺ󽫶ÔÆä½øÐнéÉÜ¡£
ÎÒÃÇÏȶ¨ÒåÁ½¸ö±äÁ¿
private string datadiv; //ÓÃÓÚ±£´ædiv±êÇ©Ãû³Æ
private string ajaxdata; //ÓÃÓÚ±£´æajax·µ»ØµÄÊý¾Ý 
datadiv±äÁ¿±£´æÁËhtmlÖеÄÎÒÃÇ´òËãÊä³öÄÚÈݵÄdiv±êÇ©µÄid¡£Õâ¸ödiv±êÇ©µÄÃû³ÆÔÚÒ»¸öWebPartʵÀýÖбØÐëΨһ¡£Èç¹ûʼÖÕÊÇÒ»¸ö¹Ì¶¨Ãû³Æ£¬ÄÇôµ±ÎÒÃÇÔÚÒ»¸öÒ³ÃæÖÐÓÐÁ½¸öwebpartµÄʵÀýʱËüÃÇÓпÉÄÜ»áÌæ»»¶Ô·½µÄÄÚÈÝ¡£
ÔÚwebpartµÄRenderContents·½·¨ÖмÓÈëÏÂÃæµÄ´úÂ룺
protected override void RenderCon


Ïà¹ØÎĵµ£º

AJAX Ó¦ÓóÌÐòÌåϵ½á¹¹3

ÆÊÎö AJAX »Ø·¢
ÈôҪʹ ASP.NET Ò³Ãæ³ÉΪ²¿·Ö³ÊÏÖµÄÒ³Ã棬Ê×ÏȱØÐëÏòÒ³ÃæÌí¼ÓÒ»¸ö½Å±¾¹ÜÀíÆ÷£¬È»ºóͨ¹ýʹÓà UpdatePanel ¿Ø¼þ½øÐзâ×°£¬´Ó¶ø¶¨Òå¿É¶ÀÁ¢¸üеÄÇøÓò¡£ÀýÈ磺
< ?xml:namespace prefix = asp />
< asp:ScriptManager runat="server">< /asp:ScriptManager>
< asp:UpdatePanel id=Upda ......

Ajax»ù´¡½Ì³Ì

»ìãç³õ¿ª£¬Ò»Çж¼ÄÇô¼òµ¥¡£ÎªÁËÁ¬½ÓÃÀ¹úµÄÉÙÊý¼¸¸ö¶¥¼âÑо¿»ú¹¹£¬ÈËÃÇÉè¼ÆÁË×îÔçµÄ“Internet”£¬ÒԱ㹲ͬ¿ªÕ¹¿ÆѧÑо¿¡£²»ÂÛÊÇͼÊé¹ÝÔ±¡¢ºËÎïÀíѧ¼Ò£¬»¹ÊǼÆËã»ú¿Æѧ¼Ò£¬¶¼±ØÐëѧϰһ¸öÏ൱¸´ÔÓµÄϵͳ¡£1962Ä꣬ÂéÊ¡Àí¹¤Ñ§Ôº£¨MIT£©µÄJ.C.R. Licklider×îÔçÌá³öËûµÄ“Galactic Network”£¨³¬´óÍøÂç£©Ë ......

Ajax¶ÔÏóXMLHttpRequestµÄ³£ÓÃÊôÐÔ£¬·½·¨ºÍʼþ

XMLHttpRequest¶ÔÏóÊÇAjaxµÄºËÐÄ£¬ËüÓÐÐí¶àÊôÐÔ£¬·½·¨ºÍʼþÒÔ±ãÓڽű¾µÄ´¦ÀíºÍ¿ØÖÆHTTPµÄÇëÇóÓëÏìÓ¦
ÏÂÃæÊǹØÓÚXMLHttpRequest¶ÔÏóµÄһЩÊôÐԺͷ½·¨½éÉÜ
1.readyStateÊôÐÔ
  µ±XMLHttpRequest¶ÔÏó±»´´½¨ºó£¬readyStateÊôÐÔ±êʶÁ˵±Ç°¶ÔÏóËù´¦µÄ״̬£¬¾ßÌåµÄÖµ´ú±íÒâÒåÈçÏ£º
  0   δ³õʼ»¯×´Ì¬£¬ ......

10¸öÓÅÐãµÄAjaxºÍJavascript¹úÍâ×ÊÔ´ÍøÕ¾

10¸öÓÅÐãµÄAjaxºÍJavascript¹úÍâ×ÊÔ´ÍøÕ¾
תÔصØÖ·£ºhttp://www.zzsky.cn/build/content/1246.htm
        1¡¢Ajax Rain: http://www.ajaxrain.com
¡¡¡¡AjaxRainÓкܶàÍêÃÀÕûºÏAjax¡¢CSS¡¢DHTML»òJavascriptµÄʵÀý£¬ÓÐһЩDemoµÄÈ·ÖµµÃÄãÈ¥¿´Ò»¿´£¬¼´Ê¹Äã²»ÊÇÍøÒ³Éè¼Æ£¨¿ª·¢£©Ê¦¡ ......

asp.net ajaxѧϰ±Ê¼Ç

asp.net ajaxѧϰ±Ê¼Ç
 
Ò»¡¢          µÇÌÃÈëÊÒ——»ù±¾¸ÅÄî
http://blog.csdn.net/soldierluo/archive/2009/11/18/4830758.aspx
 
¶þ¡¢          СÊÔÉíÊÖ——µÚÒ»¸öAjax³ÌÐò
http://bl ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ