asp.net(c#)Êý¾ÝÀàÐ͸ñʽת»»´óÈ«
1¡¢DateTime Êý×ÖÐÍ
System.DateTime currentTime=new System.DateTime();
1.1 È¡µ±Ç°ÄêÔÂÈÕʱ·ÖÃë
currentTime=System.DateTime.Now;
1.2 È¡µ±Ç°Äê
int Äê=currentTime.Year;
1.3 È¡µ±Ç°ÔÂ
int ÔÂ=currentTime.Month;
1.4 È¡µ±Ç°ÈÕ
int ÈÕ=currentTime.Day;
1.5 È¡µ±Ç°Ê±
int ʱ=currentTime.Hour;
1.6 È¡µ±Ç°·Ö
int ·Ö=currentTime.Minute;
1.7 È¡µ±Ç°Ãë
int Ãë=currentTime.Second;
1.8 È¡µ±Ç°ºÁÃë
int ºÁÃë=currentTime.Millisecond;
£¨±äÁ¿¿ÉÓÃÖÐÎÄ£©
2¡¢Int32.Parse(±äÁ¿) Int32.Parse("³£Á¿")
×Ö·ûÐÍת»» תΪ32λÊý×ÖÐÍ
3¡¢ ±äÁ¿.ToString()
×Ö·ûÐÍת»» תΪ×Ö·û´®
12345.ToString("n"); //Éú³É 12,345.00
12345.ToString("C"); //Éú³É £¤12,345.00
12345.ToString("e"); //Éú³É 1.234500e+004
12345.ToString("f4"); //Éú³É 12345.0000
12345.ToString("x"); //Éú³É 3039 (16½øÖÆ)
12345.ToString("p"); //Éú³É 1,234,500.00%
4¡¢±äÁ¿.Length Êý×ÖÐÍ
È¡×Ö´®³¤¶È£º
鍣
Ïà¹ØÎĵµ£º
ASP.NET AJAXÍƳöÒ²ÓÐÒ»¶Îʱ¼äÁË£¬µ±³õÐû³ÆµÄAJAX¿Í»§¶Ë½Å±¾¿ÉÒÔÍÑÀë·þÎñÆ÷¶Ë½Å±¾£¬ÔÚÖîÈçhtml,phpµÈƽ̨ÉÏʹÓ㬵«Ïñ΢Èí²»ÉÙÆäËû²úÆ·Ò»Ñù£¬Õâ¸ö·Ê´óµÄ£¬ÐÔÄܵÍÏ£¬ºÁÎÞÒÕÊõ¸ÐµÄ¿ò¼ÜÕýÔÚ±»´ó¼ÒËùÚ¸²¡¡£Ô½À´Ô½¶àµÄÈËÏëÒªÍÑÀëÕâ¸ö¿Í»§¶Ë½Å±¾£¬ÍÑÀëAJAXÌṩµÄ¿Í»§¶Ë¿Ø¼þ£¬Óøü¾«Á¶¸ü¸ßЧµÄ¿ò¼ÜÀ´µ÷Ó÷þÎñÆ÷¶Ë·½·¨¡£ºÜÏÔÈ»£¬Ä¿ ......
ºÜ¶àµØ·½¶¼Ó¦Óõ½Í¼Æ¬ÉÏ´«¹¦ÄÜ£¬ÄÇô¾¿¾¹ÔõÑù¿ÉÒÔʵÏÖÄØ?ÏÂÃæÎÒÀ´¸ø´ó¼Ò½øÐн²½â
ÔÚvisual studioÖÐ×Ô´øµÄÒ»¸ö¿Ø¼þfileupload£¬¿ÉÒÔʵÏִ˹¦ÄÜ£¬ÎÒÒª¸ø´ó¼Ò½éÉܵÄÊÇËüµÄÓ÷¨¡£
Ê×ÏÈҪн¨Ò»¸öÍøÒ³£¨ÏÂÃæÊÇÎÒ´´½¨ºÃµÄÒ»¸öÍøÒ³£©
ÔÚÍøÒ³ÖÐÍϽøfileupload¿Ø¼þ£¬ºóÃæ·ÅÒ»¸öÉÏ´«°´Å¥
ÕâÑù£¬µ±ÎÒÃǵã»÷ÉÏ´«°´Å¥Ê±£¬Í¼ ......
ASP.NETÌṩµÄÕ¾µãµØͼΪÎÒÃǽ¨Á¢µ¼º½À¸ºÍ²Ëµ¥ÌṩÁ˼«´óµÄ·½±ã¡£´ËÍâÎÒÃÇ»¹¿ÉÒÔ½¨Á¢×Ô¼ºµÄÕ¾µãµØͼÌṩ³ÌÐò£¬´Ó¶øʹÎÒÃǵIJ˵¥Ïî¿É¿Ø¡£
ÏÈÀ´Á˽âÏÂmenuµÈµ¼º½¿Ø¼þÓëÕ¾µãµØͼµÄ¹Øϵ¡£ÎÒÃÇÔÚASP .NETÏîÄ¿ÖÐËù½¨Á¢µÄweb.siteMap Æäʵ¾ÍÊÇÒ»¸ö× ......
Asp.Net³ÌÐòµÄ¸ß¼¶¹¦ÄÜ£¬Óкܶ඼ÊÇ»ùÓÚIHttpHandler½Ó¿ÚÀ´ÊµÏֵģ¬ÔÚWinwods Server 2003 Ï£¬ÅäÖÃIIS6µÄ Web·þÎñÀ©Õ¹·Ç³£¼òµ¥¡£×î½üÓÃWin7+IIS7.5µÄÈËÔ½À´Ô½¶à£¬ÔÚÕâ¸ö»·¾³ÏÂÅäÖÃAsp.NetµÄWeb·þÎñÀ©Õ¹¾ÍÓÐЩÂé·³¡£ÒÔÏÂÄÚÈÝ£¬¾ÍÊÇÔÚWin7ºÍIIS7.5»·¾³ÏÂÅäÖùý³Ì¡£
& ......