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

Ajax ÎÊÌâ

×î½üѧϰAJAX,²ÎÕÕhttp://dev.yesky.com/msdn/183/2426683.shtml×Ô¼º×öÁËÒ»¸öÁÐ×Ó£¬µ«ÊÇ×ÜÊÇÔÚJS´¦±¨´í_Default䶨Ò壬²»ÖªµÀʲôԭÒò¡£
Ç°Ì¨Ò³Ãæ£º
function comit_onclick()
{
¡¡var name=document.getElementById("tb1").value;
¡¡_Default.SetTb(name,callback);
}
ºǫ́£º
protected void Page_Load(object sender, EventArgs e)
{
¡¡AjaxPro.Utility.RegisterTypeForAjax(typeof(_Default));
}
[AjaxPro.AjaxMethod]
public string SetTb(string name)
{
¡¡return name;
}
webconfig:
£¼httpHandlers£¾
¡¡£¼add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/£¾
£¼/httpHandlers£¾
ûÓùý¡£°ï¶¥

<add verb="POST,GET" path="ajaxpro/*.ashx" type ="AjaxPro.AjaxHandlerFactory,AjaxPro"/>ÕâÑùÊÔÊÔ¿´
»¹ÓоÍÊÇÄãµÄÒ³ÃæµÄÀàÊDz»ÊÇ_Default

ºǫ́³ÌÐòÄÚµÄÀà¿ÉÒÔÔÚjavascriptÄÚ²¿Ö±½Óµ÷ÓÃÂ𣿣¿£¿

ÊÇ·ñÓÐÃüÃû¿Õ¼ä£¿

¿Ï¶¨ÓÐ

¡¡_Default.SetTb(name,callback); ¼ÓÈ«ÃüÃû¿Õ¼ä.

ÒýÓÃ
¡¡_Default.SetTb(name,callback); ¼ÓÈ«ÃüÃû¿Õ¼ä.

¼Ó¹ýÈ«ÃûµÄÃüÃû¿Õ¼äÒ²²»¿ÉÒÔ£¬ÀàÃû¿Ï¶¨ÊÇÕýÈ·µÄ¡£

AjaxPro.2
Õâ¸öÊǵڶþ¸ö°æ±¾µÄ°Ñ£¬ÄãÏÂÔØÒ»¸öµÚÒ»¸ö°æ±¾µÄÊÔÊÔ¿´¾Í½ÐAjaxPro.dll

ÒýÓÃ
AjaxPro.2
Õâ¸öÊǵڶþ¸ö°æ±¾µÄ°Ñ£¬ÄãÏÂÔØÒ»¸öµÚÒ»¸ö°æ±¾µ


Ïà¹ØÎÊ´ð£º

Ôõôajax¿Ø¼þupdatepanelÔÚwebͨÓÃÏîÄ¿ÖÐÎÞЧ?

ÔÚÍøÉÏ¿´µ½Ò»¶ÎÓйØupdatepanelµÄÓ¦Ó÷¶Àý,·Åµ½Í¨ÓõÄWEBÏîÄ¿ÖÐÎÞЧ,µ«·Åµ½AJAX ENABLEÏîÄ¿ÖоͿÉÒÔ,

ÎÒÏÖÔÚÏëÔÚͨÓõÄWEBÏîÄ¿ÖÐÓ¦ÓÃPANEL,²»ÖªµÀÈçºÎ²Ù×÷.(ÇëÎÊÎÒÒªÔõô²Ù×÷ÄØ?)

·¶Àý´úÂëºÜ¼òµ¥:ÈçÏ ......

¹úÇì»ùÓÚAjaxµÄ¸öÈ˲©¿ÍÍøÕ¾ÉÏÏߣ¬É¢·Ö100

¾­¹ýÒ»¸öÐÇÆÚµÄ²»¶ÏŬÁ¦£¬ÎҵĻùÓÚAjax+SSH(Óеãµãɱ¼¦ÓÃÅ£µ¶£¬ºÇºÇ)µÄ¸öÈ˲©¿ÍÖÕÓÚ¿ÉÒÔÕýʽÉÏÏßÁË¡£
ÏÖÔÚÉ¢·Ö½ÓÊܸ÷λ´óÏÀµÄ±ÉÊÓ¡£
ÍøÖ· www.bleehome.cn  BLEE HOME

(±¾À´Ïë¶àÉ¢µã£¬µ«ËµÎÒÖ»ÄÜÉ ......

ajaxÔÚfirefoxÖлñÈ¡http״̬ÂëÎÊÌâ

JScript code:

<script language="javascript">
var target = null;
function createTarget(){
if(window.ActiveXObject){
target = new ActiveXObject(" ......

[ÏòchinmoÌáÎÊ]Çë½ÌAJAX¼ÓÔØ¶¨Î»µÄÎÊÌâ

ÏÖÔÚÓÐÁ½¸öÒ³ÃæAºÍB£º

ÔÚAÒ³ÃæÓÐÒ»¸öÁ´½Ó£¬ÊÇB.aspx#commentµÄÐÎʽ

Ò²¾ÍÊǶ¨Î»BÒ³ÃæµÄêµã£¬¶øÇÒBÒ³ÃæµÄÄÚÈÝÊÇAJAX¼ÓÔØµÄ£¬

µ±¼ÓÔØÍê³ÉºóÎÞ·¨×¼È·¶¨Î»µ½Ãªµã£¬

¹À¼ÆÊÇÒ»´ò¿ªBÒ³ÃæÊ±Ò³Ãæ ......

¸ÕѧAjaxÔõôҲ²»ÖªµÀÄÄÀï³ö´íÁË

Java code:

<!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.o ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ