Ajax WebServive·½·¨´«µÝʹÓÃjavascript±äÁ¿µÄÎÊÌâ
function Fun1(para1,para2)
{
Fun2(para1);
....
ÒªÇóÊÇ:Ôڵõ½ajax·½·¨µÄ·µ»ØÖµºó£¬
ÔÙʹÓÃpara2(para2ÊÇÒ»¸öjavascript±äÁ¿)
ÎÊÌâ¾ÍÊÇ£¬
Ôõô´«µÝpara2,
ÒòΪµÃµ½ajax·½·¨µÄ·µ»ØÖµÊÇÔÚOnAjaxFun·½·¨ÖеÄ
}
function Fun2(para1)
{
Service.AjaxFun(para1,OnAjaxFun);
}
function OnAjaxFun(result)
{
}
ÈçÐèÒªÔĶÁ¸Ã»Ø¸´£¬ÇëµÇ¼»ò×¢²áCSDN!
Ïà¹ØÎÊ´ð£º
±ÈÈçÓÐÒ»¸ötextbox£¬Óû§ÊäÈëºóµãbutton°´Å¥Ê±£¬ÊµÏÖÓÃJavaScript¶ÔtextboxÊäÈëÐÅÏ¢µÄÑéÖ¤£¬±ÈÈçÑéÖ¤Óû§ÊäÈëµÄÊÇ·ñÊÇÊý×Ö¡£
Ï£Íû½«HTML´úÂëÒ»²¢Ð´³öÀ´¹þ£¬Ð»Ð»¡£
HTML code:
<!DOCTYPE html PUBLIC &quo ......
C#дJAVASCRIPT Êý×é
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
& ......
ÔÚ¸üÐÂÃæ°åÀï×¢²áÁËÒ»¸öJavaScript½Å±¾£¨½Å±¾µÄ×÷Ó㺹ö¶¯ÏÔʾÎÄ×Ö£©£¬ÔÚ³ÌÐòÁ¬ÐøÅÜ30·ÖÖÓÒԺ󣬵¯³öÒ»¸ö´íÎóÌáʾ¿ò£¬´íÎó£ºÎ´Ö¸Ã÷µÄ´íÎó ״̬Âð£º0£¬ÆÚ´ý¸ßÊÖºÍÎÒÒ»Æð½â¾ö¡£
ÏȰﶥ¡£¡£¡£´úÂëÄØ£¿
×Ô¼ºÒ²¶¥Ï¡£ ......
ÈçÌ⣬лл
1.ÓÃactiveX
2.Ó÷þÎñÆ÷.´«µÝÃüÁî¸ø·þÎñÆ÷,·þÎñÆ÷À´ÔËÐÐ
javascript²»¿ÉÒÔÂð
jsÊǿͻ§¶ËÖ´Ðеģ¬È¨ÏÞÓÐÏÞ£¬¿ÉÒԵϰ£¬²¡¶¾ÂúÌì·ÉÀ²
Êǰ¡£¬Èç¹û¿ÉÒԵϰ£¬ÄÇ JavaScript Ö´ÐÐÒ»¸ö format c: ......
var str="reguser_do.asp?psw_value="+obj.value+"®id_value="+obj.id+"&ac_name="+ajax
ÎÒÕâÑùÁ¬½ÓÄÄÀï´íÁË£¿ÎªÊ²Ã´ÒªÕâÑùд£¿
ûÓдíÎó£¬Ö»ÊÇajaxÊǸöʲô±äÁ¿£ ......