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

asp.net È·È϶Ի°¿òÓëÊý¾ÝÑéÖ¤¿Ø¼þµÄ³åÍ»ÎÊÌâ

 µ±Ò»¸öÍøÒ³ÖмÈÓÐÊý¾ÝÑéÖ¤¿Ø¼þ£¬ÓÖÓÐÒ»¸ö°´Å¥ÔÚµã»÷ʱ³öÏÖÌáʾ°´Å¥¡£
Èç¹ûÖ±½ÓÔÚÒ³ÃæµÄºǫ́´úÂëµÄPage_Loadº¯ÊýÖÐдÈëbtn.Attributes["Onclick"] = "return confirm('È·¶¨Òª±£´æÊý¾Ý£¿')"£¬ÄÇôÑéÖ¤¿Ø¼þ¾Í»áʧЧ£¬ÒòΪÑéÖ¤¿Ø¼þÒ²ÊÇͨ¹ýjsʵÏֵģ¬ÕâÑùµÄ»°return confirm('È·¶¨Òª±£´æÊý¾Ý£¿')ÏÈÓÚÔ­À´µÄjs´úÂëÖ´ÐУ¬ÌáÇ°·µ»ØÁË£¬ÓÚÊÇÑéÖ¤¿Ø¼þʧȥÁË×÷Óá£
½â¾ö·½·¨£º È¥µôreturn¼´¿É
bt_save.Attributes["OnClick"] = "confirm('È·¶¨Òª±£´æÊý¾Ý?')";


Ïà¹ØÎĵµ£º

ASP.NET¹ØÓÚÌõÐÎÂëµÄÉú³ÉÎÊÌâ¼æÍøÒ³´òÓ¡

ÌõÐÎÂëÊÇÆù½ñΪֹ×î¾­¼Ã¡¢ÊµÓõÄÒ»ÖÖ×Ô¶¯Ê¶±ð¼¼Êõ¡£ÌõÐÎÂë¼¼Êõ¾ßÓÐÒÔϼ¸¸ö·½ÃæµÄÓŵã
¡¡¡¡A£®ÊäÈëËٶȿ죺Óë¼üÅÌÊäÈëÏà±È£¬ÌõÐÎÂëÊäÈëµÄËÙ¶ÈÊǼüÅÌÊäÈëµÄ5±¶£¬²¢ÇÒÄÜʵÏÖ“¼´Ê±Êý¾ÝÊäÈ딡£
¡¡¡¡B£®¿É¿¿ÐԸߣº¼üÅÌÊäÈëÊý¾Ý³ö´íÂÊΪÈý°Ù·ÖÖ®Ò»£¬ÀûÓùâѧ×Ö·ûʶ±ð¼¼Êõ³ö´íÂÊΪÍò·ÖÖ®Ò»£¬¶ø²ÉÓÃÌõÐÎÂë¼¼ÊõÎóÂëÂʵ ......

ASP.NET»º´æ

 
½éÉÜ
»º´æÊÇÔÚÄÚ´æ´æ´¢Êý¾ÝµÄÒ»Ïî¼¼Êõ£¬Ò²ÊÇASP.NETÖÐÌṩµÄÖØÒªÌØÐÔÖ®Ò»¡£ÀýÈçÄã¿ÉÒÔÔÚ¸´ÔÓ²éѯµÄʱºò»º´æÊý¾Ý£¬ÕâÑùºóÀ´µÄÇëÇó¾Í²»ÐèÒª´ÓÊý¾Ý¿âÖÐÈ¡Êý¾Ý£¬¶øÊÇÖ±½Ó´Ó»º´æÖлñÈ¡¡£Í¨¹ýʹÓûº´æ¿ÉÒÔÌá¸ßÓ¦ÓóÌÐòµÄÐÔÄÜ¡£
Ö÷ÒªÓÐÁ½ÖÖÀàÐ͵Ļº´æ£º
1.Êä³ö»º´æOutput caching
2.Êý¾Ý»º´æData caching
1. Êä³ö»º´æ ......

ASP.NETÖÐListBoxʵÏÖDouble Clickʼþ

(1)ÔÚWEBÒ³ÃæÉϼÓÈëJS½Å±¾ºÍ´æ·ÅListBoxʼþµÄÒþ²ØÊäÈë¿ò,LISTBOXÊÇÓÃÀ´±£´æʱ¼äµÄÃû³Æ,ÔÚCSÒ³ÃæÓõ½:ÆäJS´úÂëÈçÏÂ:
<script language="javascript">
     function ListBox1_DoubleClick() {
       /* we will change value of this hidden field so  t ......

asp.net ToString¸ñʽ´óÈ«

 ×ªÔØÓÚ£ºhttp://hi.baidu.com/juzi119/blog/item/d4bf9a4b7cea7df583025c9e.html
C   »õ±Ò 2.5.ToString("C") £¤2.50
D   Ê®½øÖÆÊý 25.ToString("D5") 00025
E ¿ÆѧÐÍ 25000.ToString("E") 2.500000E+005
F ¹Ì¶¨µã 25.ToString("F2") 25.00
G ³£¹æ 2.5.ToString("G") 2.5
N Êý×Ö 2500000. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ