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

ajax.dll .netÖмòµ¥Ê¹ÓÃajax

ajax.dllÒѾ­ÊǺÜÀϵĶ«Î÷ÁË£¬µ«ÊǽñÌìÎÒ²ÅÓõ½Ëü£¬ÏÖÔÚ°ÑËüµÄʹÓ÷½·¨¼Ç¼ÏÂÀ´¡£
1.ÔÚweb.configÖÐÅäÖÃajaxµÄ´¦Àí³ÌÐò¡£
<httpHandlers>
     <add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax" />
<httpHandlers>
2. ×¢²á´¦Àí³ÌÐòÀ࣬ajaxTestÊÇÎҵĴ¦Àí³ÌÐòÀà¡£
Ajax.Utility.RegisterTypeForAjax(typeof(AjaxTest));
3. ÔÚ´¦Àí³ÌÐòÀàÖбàд´¦Àí·½·¨¡£
[Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.Read)]
    public void abc(string s)
    {
       
        TextBox1.Text = s;
     
    }
4.3.ÔÚJS¶ËʹÓÃAjaxMethodÖеķ½·¨£¬AjaxTestÊÇ·þÎñÆ÷¶ËµÄ´¦Àí³ÌÐòÀ࣬abcÊÇ·þÎñÆ÷¶ËͬÃû·½·¨£¬¿ÉÒÔ½ÓÊÜ3¸ö²ÎÊý,
abc('´«¸ø·þÎñÆ÷µÄ²ÎÊý', '»Øµ÷º¯Êý,½ÓÊÕÒ»¸ö²ÎÊý£¬ÊÇÒ»¸öresponse¶ÔÏó', 'context,Õâ¸ö²ÎÊý»¹Ã»ÅªÇå³þ...')
AjaxTest.abc('ffff',function(e){alert(e.value)}, 'abc')


Ïà¹ØÎĵµ£º

ajax °²È«ÐÔ

ÍêÈ«ÊÊÓÃASP.NETµÄÈÏÖ¤»úÖÆ
–¿ÉÒÔʹÓÃFormsAuthentication
•WebService·½·¨¿ÉÒÔ²Ù×÷Cookie
–Impersonation
–PrincipalPermission
WebService7.cs Code
using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
usi ......

ajax ´¦ÀíÒ첽ˢÐÂÖгöÏÖµÄÒì³£

Default3.aspx Code:
<%@Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"& ......

Ajax¶¯Ì¬¼ÓÔØĿ¼Ê÷£¨jquery treeview£©

ÐèÇó£º
   ¶¯Ì¬¼ÓÔØĿ¼Ê÷½ÚµãÊý¾Ý¡£¼´£ºÊ÷µÄ³õʼ״̬Ϊ¸ù½ÚµãÊ÷£¬µ±µã»÷ÆäÖÐÒ»¸ö½Úµãʱ£¬ÔÙ´ÓÊý¾Ý¿âÖлñÈ¡µ±Ç°½ÚµãµÄ×ӽڵ㡣
»·¾³£º
   Struts1+Hibernate3.0+jQuery+treeview
½â¾ö·½°¸£º
1.ÎÒ×Ô¼ºµÄÏîÄ¿ÐèÇóÊÇ£º»ñÈ¡linuxµÄFTPĿ¼£¬ÒÔ¶¯Ì¬¼ÓÔصķ½Ê½È¡µÃ¸ÃFTPÉϵÄËùÓÐĿ¼¼°ÎļþÉú³ÉjsÊ÷£¬µã» ......

¼òµ¥Ó¦¸ÃajaxÎÞˢлñÈ¡Êý¾Ý

Ajax¿ÉÒÔʵÏÖÍøÒ³µÄ¾Ö²¿Ë¢ÐÂ,ÊÇͨ¹ýJS»ñÈ¡Êý¾Ý,ÔÙ°ÑÊý¾ÝÌí¼Óµ½ÍøÒ³ÖÐ,È»¶øÓÉÓÚä¯ÀÀÆ÷µÄ²»Í¬,³õѧÕߺÜÄÑ×öµ½¼æÈÝÎÊÌâ.
ÕâÀïÎÒÏò´ó¼Ò½éÉÜÒ»Öֺõķ½·¨.ͨ¹ýJQuery²å¼þ.JQuery.jsÎļþ¿ÉÒÔÔÚ¹ÙÍøÉÏÏÂÔØ,»òÕßgoogleÒ²ÐÐ.
Ê×ÏÈÄãÒªÔÚÍøÒ³ÒýÈëJSÎļþ
<script src="../javascript/jquery.js" type="text/javascript"></ ......

AJAX¼¼Êõ»ã×Ü

AJAX
AJAXÈ«³ÆΪ“Asynchronous JavaScript and XML”£¨Òì²½JavaScriptºÍXML£©£¬ÊÇÖ¸Ò»ÖÖ´´½¨½»»¥Ê½ÍøÒ³Ó¦ÓõÄÍøÒ³¿ª·¢¼¼Êõ¡£ËüÓлúµØ°üº¬ÁËÒÔϼ¸ÖÖ¼¼Êõ£º
Ajax£¨Asynchronous JavaScript + XML£©µÄ¶¨Òå
»ùÓÚweb±ê×¼£¨standards-based presentation£©XHTML+CSSµÄ±íʾ£»
ʹÓà DOM£¨Document Object Model£© ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ