asp.net »ñÈ¡±¾ÖÜ¡¢±¾ÔµÚÒ»ÌìºÍ×îºóÒ»Ìì
DateTime dt = DateTime.Now;
//±¾ÔµÚÒ»Ììʱ¼ä
DateTime dt_First = dt.AddDays(-(dt.Day) + 1);
Label1.Text = dt_First.ToString("yyyy-MM-dd");
//½«±¾ÔÂÔÂÊý+1
DateTime dt2 = dt.AddMonths(1);
//±¾ÔÂ×îºóÒ»Ììʱ¼ä
DateTime dt_Last = dt2.AddDays(-(dt.Day));
Label2.Text = dt_Last.ToString("yyyy-MM-dd");
int weeknow = Convert.ToInt32(System.DateTime.Now.DayOfWeek);
int daydiff = (-1) * weeknow + 1;
int dayadd = 7 - weeknow;
//±¾ÖܵÚÒ»Ìì
string datebegin = System.DateTime.Now.AddDays(daydiff).ToString("yyyy-MM-dd");
//±¾ÖÜ×îºóÒ»Ìì
string dateend = System.DateTime.Now.AddDays(dayadd).ToString("yyyy-MM-dd");
Label3.Text = datebegin;
Label4.Text = dateend;
Ïà¹ØÎĵµ£º
ͨ³£ÎÒÃÇÔÚÒ»¸ö
ASP.NET MVCÏîÄ¿Öд´½¨Ò»¸ö
ControllerµÄʱºò£¬
Index()·½·¨Ä¬Èϵķµ»ØÀàÐͶ¼ÊÇ
ActionResult£¬Í¨¹ý²é¿´
UMLͼ£¬
ActionResultʵ¼ÊÉÏÊÇÒ»¸ö³éÏóÀ࣬Òò´Ëʵ¼Ê·µ»ØµÄÀàÐÍÊǸóéÏóÀàµÄ×ÓÀà¡£
Ø
ActionResult
¼°Æä×ÓÀàµÄ
UML
ͼ
ÓйØ
ActionResult¼°Æä×ÓÀàµÄ
UMLͼÈçÏÂËùʾ£º
&n ......
Èç¹û¶Ô΢ÐͼÆËã»úÓ²¼þϵͳÓÐ×ã¹»µÄÁ˽⣬ÄÇôÎÒÃǶÔÓÚCacheÕâ¸öÃû´ÊÒ»¶¨ÊǶúÊìÄÜÏêµÄ¡£ÔÚCPUÒÔ¼°Ö÷°åµÄоƬÖУ¬¶¼ÒýÈëÁËÕâÖÖÃûΪ¸ßËÙ»º³å´æ´¢Æ÷£¨Cache£©µÄ¼¼Êõ¡£ÒòΪCacheµÄ´æÈ¡ËٶȱÈÄÚ´æ¿ì£¬Òò¶øÒýÈëCacheÄܹ»ÓÐЧµÄ½â¾öCPUÓëÄÚ´æÖ®¼äµÄËٶȲ»Æ¥ÅäÎÊÌâ¡£Ó²¼þϵͳ¿ÉÒÔÀûÓÃCache´æ´¢CPU·ÃÎʸÅÂʸߵÄÄÇЩÊý¾Ý£¬µ±CPUÐèÒª· ......
×î½ü£¬Òª×öÒ»¸öµÇ½µÄÒ³Ã棬¾ÍÏëµ½ÁË°²È«ÐÔ·½ÃæµÄÎÊÌâ¡£¼ÇµÃÔø¾ÔÚÉÛÖ¾¶«ÀÏʦ½²µÄ¹ØÓÚasp.net°²È«ÐÔ·½ÃæµÄ¿Î³ÌÖУ¬Ìáµ½asp.netÌṩÁË4¸öÉí·ÝÑéÖ¤³ÌÐò£º1.±íµ¥Éí·ÝÑéÖ¤£»2.WindowsÉí·ÝÑéÖ¤£»3.PassportÉí·ÝÑéÖ¤£»4.ĬÈÏÉí·ÝÑéÖ¤¡£ÓÈÆä½²ÁË±íµ¥Éí·ÝÑéÖ¤£¬ÏëÏ룬ÕýºÃ×Ô¼ºÒÔÇ°Ò²²»ÔøʹÓùýÕâ¸öÑ ......
ÔÚ±¾ÑÝÁ·ÖУ¬Äú½«Ê¹Óà ECMAScript (JavaScript) ÒÔÈ«Çò»¯¸ñʽÏÔʾÈÕ¡¢ÔºÍÆäËûÓëÈÕÆÚÏà¹ØµÄÖµ¡£ASP.NET ÖÐµÄ AJAX ¹¦ÄÜ»ùÓÚ ScriptManager ¿Ø¼þÖеÄÉèÖÃÌṩ¿Í»§¶ËÈ«Çò»¯Ö§³Ö¡£½«ÕâЩȫÇò»¯ÉèÖÃÓ¦ÓÃÓÚ Web Ó¦ÓóÌÐòºó£¬¿ÉÒÔʹÓÿͻ§¶Ë½Å±¾»ùÓÚÇøÓòÐÔÖµÉèÖà JavaScript Date »ò Number ¶ÔÏ ......
3¸öÎļþ
code ÀàÎļþ
using System;
using System.Text;
namespace ConcreteMIS.Common.Chinese
{
/// <summary>
/// ºº×ÖÆ´ÒôÉùĸ¼ÆËãÀà
/// Write by WangZhenlong at 2003/11/29
/// </summary>
......