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

asp.netÈÕÆÚʱ¼äº¯Êý

//Ïêϸ½éÉÜasp.net»ñÈ¡ÈÕÆÚʱ¼äµÄ¸÷ÖÖ¸ñʽµÄº¯Êý
DateTime.Now.ToLocalTime().ToString();                // 2009-9-5 20:12:12
//»ñÈ¡ÈÕÆÚ
DateTime.Now.ToLongDateString().ToString();     // 2009Äê9ÔÂ5ÈÕ
DateTime.Now.ToShortDateString().ToString();        // 2009-9-5
DateTime.Now.ToString("yyyy-MM-dd");                 // 2009-09-05    ¡¡
DateTime.Now.Date.ToString();                            ¡¡// 2009-9-5 0:00:00
DateTime.ToFileTime().ToString();                    ¡¡// 128650040212500000
DateTime.Now.ToFileTimeUtc().ToString();         // 128650040772968750
DateTime.Now.ToOADate().ToString();                ¡¡// 39695.8461709606
DateTime.Now.ToUniversalTime().ToString();
//»ñȡʱ¼ä
DateTime.Now.ToLongTimeString().ToString();        // 20:16:16
DateTime.Now.ToShortTimeString().ToString();        // 20:16    ¡¡
DateTime.Now.ToString("hh:mm:ss");                 // 09:05:57    ¡¡
DateTime.Now.TimeOfDay.ToString();                    // 20:33:50.7197500
//ÆäËû
DateTime.ToFileTime().ToString();             &nbs


Ïà¹ØÎĵµ£º

asp.net ÖÐµÄ URLÖØд

URL ÖØдÊǽØÈ¡´«Èë Web ÇëÇó²¢×Ô¶¯½«ÇëÇóÖض¨Ïòµ½ÆäËû URL µÄ¹ý³Ì¡£
   ±ÈÈçä¯ÀÀÆ÷·¢À´ÇëÇóhostname/101.aspx £¬·þÎñÆ÷×Ô¶¯½«Õâ¸öÇëÇóÖж¨ÏòΪhttp://hostname/list.aspx?id=101¡£
urlÖØдµÄÓŵãÔÚÓÚ£º
     Ëõ¶Ìurl£¬Òþ²Øʵ¼Ê·¾¶Ìá¸ß°²È«ÐÔ
     Ò×ÓÚÓû§¼ÇÒäºÍ¼ ......

[·ÖÏí]ASP.netÒ»¸ö¿Õ¼ä¶à¸öÍøÕ¾µÄÉèÖÃ

¿´µ½ÓÐÈËÌáÎÊÒ»¸ö¿Õ¼äÖ§³Ö¶à¸öÍøÕ¾µÄÎÊÌâ¡£
×ܽáһϣº
×îºÃ±£Ö¤¸÷¸öÏîÄ¿app_codeÄÚµÄÎļþ¶¼ÊÇÒ»ÑùµÄ¡£
ÒòΪÉú³É¶à¸öÏîÄ¿±Ø¶¨Éú³É¶à¸öApp_Code.dll£¬
ÓÉÓÚËùÓÐdll·ÅÔÚͬһ¸öbinĿ¼£¬ËùÒÔÒª±£Ö¤app_codeÄÚµÄÎļþÒ»Ñù¡£
·¢²¼Ç°ËùÓÐÏîÄ¿aspxÎļþµÄ Inherits="menulefttb" ÖеÄÃû×Ö²»ÄÜÏàͬ¡£
½«Ã¿¸öÏîÄ¿·¢²¼ºóÉú³ÉµÄdll ......

ASP.NET Ò³Ãæ¼äÊý¾Ý´«µÝ·½·¨Ð¡½á

Web Ò³ÃæÊÇÎÞ״̬µÄ£¬ ·þÎñÆ÷¶Ôÿһ´ÎÇëÇó¶¼ÈÏΪÀ´×Ô²»Í¬Óû§£¬Òò´Ë£¬±äÁ¿µÄ״̬ÔÚÁ¬Ðø¶ÔͬһҳÃæµÄ¶à´ÎÇëÇóÖ®¼ä»òÔÚÒ³ÃæÌøתʱ²»»á±»±£Áô¡£
0¡¢ÒýÑÔ
Web Ò³ÃæÊÇÎÞ״̬µÄ£¬·þÎñÆ÷¶Ôÿһ´ÎÇëÇó¶¼ÈÏΪÀ´×Ô²»Í¬Óû§£¬Òò´Ë£¬±äÁ¿µÄ״̬ÔÚÁ¬Ðø¶ÔͬһҳÃæµÄ¶à´ÎÇëÇóÖ®¼ä»òÔÚÒ³ÃæÌøתʱ²»»á±»±£Áô¡£ÔÚÓÃAsp.NET Éè¼Æ¿ª·¢Ò»¸öWeb ......

asp.netµÄÒ»¸ödbhelperÀà

using System;
using System.Collections;
using System.Collections.Specialized;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections.Generic;
using System.Text;
namespace Maticsoft.DBUtility
{
     /// <summary>
  ......

asp.netÍøÒ³¾²Ì¬»¯

Ò»¡£¢Ù£ºÊ×ÏÈÒªÓÐÕâ¸öÎļþURLRewriter.dll,Èç¹ûûÓÐ,¸Ï¿ìµ½ÍøÉÏÏÂÔØÒ»¸ö,²¢½«Æä·Åµ½ÏÂÃæµÄbinĿ¼ÀïÃæ,²¢ÇÒ½«ÆäÒýÓÃÌí¼Óµ½ÏÂÃæÀïÃæ;
  ¢Ú£ºÏÂÃæ¾ÍÊÇWeb.ConfigÎļþµÄÅäÖÃÁË,µ±È»,ÅäÖùý³ÌÏ൱¼òµ¥£º
  1£ºÏÈÌí¼ÓÕâ¸ö
<configSections>
<section name="RewriterConfig" type="URLRewriter.Config.Rew ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ