C# asp.netÖеÄlabelÏÔʾÎÊÌâ
ÎÒÓÃC#±àasp.netÍøÒ³¡£ÔÚÒ»¸ö°´Å¥button1ÖУ¬ÓÐÒ»¶Î´úÂëÔËÐÐʱ¼ä½Ï³¤£¬ÓÚÊÇÎÒÏëÔÚ°´Å¥°´ÏÂÖ®ºó£¬ÓÃÒ»¸ölabel1À´ÏÔʾһС¶Î×Ö·û£ºlabel1.text="ÕýÔÚ²éѯÖУ¬ÇëÉÔµÈ..."£¬È»ºóÔÚbutton1´úÂëÖ´ÐеÄ×îºóÒ»ÐдúÂëÉÏÔÙÏûÈ¥label×Ö·û£ºlabel1.text="".µ«ÔËÐнá¹ûÈ´ÊÇûÓÐÏÔʾlabel1µÄÈκδúÂ룬ÎÒ½«ÏûÈ¥label1×Ö·ûµÄ´úÂë×¢Ïúºó£¬·¢ÏÖËùÓдúÂ붼ÔËÐÐÍêÖ®ºó£¬²Å³öÏÖ"ÕýÔÚ²éѯÖУ¬ÇëÉÔµÈ..."×ÖÑù£¬ÕâÊÇÔõô»ØÊÂÄØ£¿ÎÒÓÃÁËajax+asp.net¡£
´úÂëÌù³öÀ´³ò³ò£¡£¡
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text ="²éѯÖУ¬ÇëÉÔºó...";
//Êý¾Ý¿â²éѯ¼°´¦Àí´úÂëÒ»´ó¶Î
Label1.text="";
}
ÒòΪִÐÐʱ¼äÉÔ³¤£¬ËùÒÔÏ£ÍûÓû§ÔÚ°´Ï°´Å¥µÄʱºò£¬ÄÜ¿´¼ûÌáʾÐÅÏ¢£¬ÔÚ´¦ÀíÍê±Ïºó£¬ÌáʾÐÅÏ¢ÔÙÏûʧ£¬µ«ÏÖÔھͲ»ÊÇÕâÑùµÄ£¬¶øÊÇÔÚÖ´ÐÐÍêËùÓдúÂëºó£¬ÔÙ³öÏÖÌáʾÐÅÏ¢ÁË¡£
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text ="²éѯÖУ¬ÇëÉÔºó..."; //ͨË×µÄ˵Õâ¾ä´úÂë»á±»ÏÂÃæµÄLabel1.text=""£»¸²¸Ç
//Êý¾Ý¿â²éѯ¼°´¦Àí´úÂëÒ»´ó¶Î
Label1.text="";
}
ÓÃJQuery.ajaxÂ
Ïà¹ØÎÊ´ð£º
c# ÓÐûÓÐÓÃÓÚC/SµÄ htmlÎı¾±à¼Æ÷
¾ÍÏñweb½çÃæµÄÎı¾ÄÚÈݱà¼Æ÷
up
C/S»¹Òª±àÒëÆ÷¸ÉÂï°¡
ÓÖ²»ÓÿØÖÆÑùʽ
òËÆûÓÐ°É Èç¹ûÓÐÁË֪ͨÏÂÎÒ ÎÒÒ²Òªliujintaohfbb@163.comÎÒµÄÓÊÏä ......
adpx¸ñʽµÄ£¬ÓÃIE´ò¿ªÌáʾ
ÎÞ·¨ÏÔʾ XML Ò³¡£
ʹÓà XSL Ñùʽ±íÎÞ·¨²é¿´ XML ÊäÈë¡£Çë¸üÕý´íÎóÈ»ºóµ¥»÷ ˢа´Å¥£¬»òÒÔºóÖØÊÔ¡£
---------------------------------------------------------- ......
ÔÚ¹«Ë¾¾Àí¸øÁËÎÒÕâÑùÒ»¸öÏîÄ¿£º
ÏîÄ¿ÒÔÇ°ÒѾ¿ª·¢ÁË£¬ÓÃASP¿ª·¢µÄ£»
ÏÖÔÚ½«ÆäÖÐÒ»¸öÄ£¿éÓÃASP.NETÖØпª·¢£»
ÊÔÎÊ£ºÔõô°ì£¿
Ô½ÏêϸԽºÃ£¬×îºÃÊǽáºÏʵ¼Ê¿ª·¢£¬O(¡É_¡É)Oлл
ÓеÀÀ ......
asp.net ÖÐÊý¾Ý¿âÖÐÓÐÒ»´ó¶ÎÎÄ×ÖÄÚÈÝ£¬Æä×Ó¶ÎΪnewscontent ÏÔʾ³öÀ´¡£ÓÃitemTemplate ÖеÄlable¿Ø¼þ°ó¶¨ÏÔʾ
µ«Êý¾Ý¿âÖÐÄÚÈÝÏÔʾÔÚÍøÒ³Öв»»á»»ÐС£¹Ê¸ÄÓÃ×Ô¶¨ÒåÏÔʾ·½Ê½ÄÚÈÝΪReplace(Eval("newscontent&q ......
ÎÒÏëÒªÒ»¸öºÍqqÒ»ÑùµÄµ¯³ö¿ò£¬Äܹ»¹Ø±Õ£¬²»ÊÇ×Ô¶¯µÄ£¬¶øÊÇÊÖ¶¯µÄÄÇÖÖ£¬ÔÚµ¯³ö¿òÖÐÎÒÏë¼ÓÒ»¸öÊÓƵ£¬²»ÖªÓÐûÓÐÈË×ö¹ý°¡£¬ÔÚÏߵȰ¡£¬Ï£ÍûÓÐÈËÄܸøÎÒ·¢¸öʵÀý´úÂ룬ÔÚÏߵȣ¬
²»ÖªµÀÄãҪʲôЧ¹û£¬
²»¹ýÒ²¿Ï¶¨ÊÇ ......