Ajax UpdatePanelÖÐ ÈçºÎµ¯³öÈ·È϶Ի°¿ò
UpdatePanel ÖÐÓÐUltraWebGrid Button
ÔÚµã»÷Buttonʱ,Ê×ÏÈ×öһЩÅжÏ(Ìõ¼þA)
Âú×ãÌõ¼þAʱ,µ¯³ö¶Ô»°¿òÌáʾÓû§,Ñ¡ÊǼÌÐø Ñ¡ ·ñ ÖÕÖ¹.
ÇëÎÊ£¬Ôõôµ¯³öÕâÖÖÌáʾ"ÊÇ»ò·ñ"µÄ¶Ô»°¿ò
ÄãÕâÑùµ¯³öµÄÖ»ÊÇÒ»¸öÑ¡ÔñµÄ¶Ô»°°É,²»ÊÇ "ÊÇ""·ñ"2ÖÖµÄ
Ñ¡Ôñ¶Ô»°¿ò²»¾ÍÊÇ
È·¶¨ºÍÈ¡ÏûÂð£¿
Èç¹ûÒª¸ÄÎÄ×ֵϰ£¬ÄǾ͵Ã×Ô¶¨ÒåÁË¡£
ÄãдµÄÄÇ·½·¨,Ö»Êǵ¯³ö1¸ö¿ò,ÉÏÃæÖ»ÓÐ1¸öµã»÷Ñ¡ÏîµÄ°É.ÎÒÒª2¸öµÄ°¡!!!!
1¸öµÄÎÒÒ²Óõ½¹ý£¬ÎÒÊÇÕâôдµÄ:
ScriptManager.RegisterClientScriptBlock(this.UpdatePanel1, this.GetType(), "click", "alert('ÒÑÈ¡Ïû£¡')", true);
±ÈÈçÎÒÕâ¸ö£¬µ¯³öµÄ¿ò,¾ÍÊÇÌáʾһÏÂÓû§,ÒѾȡÏûÁË£¬Ã»Ê²Ã´Ñ¡ÔñÐÔ!
ºÇºÇ
Confirm²»¾ÍÊÇÈ·ÈÏÌáʾ¿òÂð£¿
alertÊÇÌáʾ¿ò
²Î¿´
http://bbs.okajax.com/demo/31/
ÍüÁ˸øÏÂÔØÁ´½Ó
http://www.okajax.com/a/200808/0R4P152008.html
½â¾öÁË~лл
µ¯³ö¿òÁË£¬µãÈ·ÈÏÔõôÅжÏ?
¾ÍÊÇ˵µãÈ·ÈϵĴúÂëÔõôд....
Ïà¹ØÎÊ´ð£º
´úÂëÈçÏ Çë¸ßÊÖ Ö¸µãÏ лл
ajax_http.js
-------------
function getXMLHTTP() {
var xmlhttp;
if (window.ActiveXObject) {
//IE
try {
......
ÎÊÌâ: ÏÖÔÚÌá½»Ö®ºó¾Í²»ÄÜÌøµ½ajax.jsÖÐÖ¸¶¨µÄservlet
¶øÊÇÓÖÖØÐ½øÈëµ½ÁËpub_hotel_t.jspÒ³Ãæ. Ò²¾ÍÊÇûÓÐÖ´Ðе½ajaxÀïÃæÈ¥ ´ó¼Ò°ïæ¿´¿´ÊÇʲôÔÒò°É.
ÊDz»ÊǺÍÌá½»µÄ°´Å¦ÓйØÄ ......
ÒòÎªÍøÕ¾¶¼ÊÇÉú³É¾²Ì¬µÄÄÚÈÝ¡£ÓÐЩ¶«Î÷û°ì·¨ÊµÊ±¸üС£ÎÒ¾Í×ö³ÉÁËAJAXÁбíµÄÐÎʽÁË¡£
ÏÖÔÚµÄÎÊÌâÀ´ÁË£¬¿´ÏÂÃæµÄÍøÖ·£º
http://www.net1573.com/article/art_38.html
Ò³ÃæÓÐ¹ã¸æ¼ÓÔØ£¬ÔĶÁ´ÎÊý£¬»¹ÓÐÎÄÕÂÆÀÂÛ¡£Õâ ......
¿´ÁËһЩÊ飬Ҳд¹ýһЩ¼òµ¥µÄÀý×Ó£¬¸Ð¾õajax¾ÍÊÇÓÃÌØ¶¨µÄ¶ÔÏóÈ¥¡°ÎÊ¡±·þÎñÆ÷ÐÅÏ¢£¬ÔÙÓÃjavascript°ÑÎÊÀ´µÄÐÅÏ¢¡°Ð´¡±ÔÚÍøÒ³ÉÏ
Õâ¾ÍÓÐÒ»¸öÎÊÌâÁË£¬Èç¹û¡°ÎÊ¡±»ØÀ´µÄÐÅÏ¢ÊÇÒ»¸öºÜ¸´ÔӵĶ«Î÷£¬ÄÇjavascriptÀï¾ÍÒªÓÐ·Ç ......
ÔÚservletÖУ¬ÓÐÖÐÎÄ´«µÝµ½Ò³ÃæÖеÄjsÀïÃæ£¬ÔÚjsÏÔʾÖÐÎÄʱ£¬³öÏÖÂÒÂë¡£
serletÀïÃæ²¿·Ö´úÂ룺
Java code:
StringBuffer sb=new StringBuffer("<nprovince>");
for(City city:clist){
......