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

ASP.net Ò³Ãæ±»¹Ø±Õºó£¬·þÎñÆ÷¶ËÊÇ·ñÈÔȻִÐÐÖУ¿

ÎÊÌ⣺µ±Ò»¸öÕýÔÚÖ´ÐÐÖеÄASPXÒ³ÃæÖ´Ðе½Ò»°ëµÄʱºò£¬ä¯ÀÀÆ÷ÖÐÄã¹Ø±ÕÁËÕâ¸öÒ³Ã棬·þÎñÆ÷¶Ë¶ÔÓ¦µÄÕâ¸öÒ³ÃæµÄ´úÂëÈÔÈ»ÔÚÖ´ÐÐô£¿
´ð°¸£º³ý·ÇÄã´úÂëÀïÃæ×öÁËÌØÊâÅжϣ¬·ñÔòÈÔÈ»ÕýÔÚÖ´ÐС£
×¢Òâµã£º
1¡¢¿Í»§¶ËÏÔʾҳÃæµÄʱºò£¬ºǫ́ÒѾ­Ö´ÐÐÍêÁ˵ÄÒ³Ãæ¶ÔÏóÔçÒѾ­²»´æÔÚÁË¡£µ±È»Õâʱºò̸²»ÉÏ·þÎñÆ÷¶ÎÖ´Ðв»Ö´ÐеÄÎÊÌâÁË¡£
2¡¢Ò³Ã滹ûÓзµ»Ø£¬´¦Óڵȴý״̬µÄʱºò¡£¹Ø±ÕASPXÒ³Ã棬²Å»áÉæ¼°µ½ÉÏÃæÌáµ½µÄ·þÎñÆ÷¶ËÈÔÈ»ÔÚÖ´ÐеÄÇé¿ö¡£
3¡¢¿Í»§¶Ë¹Ø±ÕµÄʱºò¸ù±¾²»Ïò·þÎñÆ÷·¢ËÍÖ¸Áî¡£
4¡¢³ý·ÇÄã´úÂëÀïÃæ×öÁËÌØÊâÅжϣ¬ÕâÀïµÄÌØÊâÅжÏÖ¸Óà if(!Response.IsClientConnected) À´¼ì²â״̬¶øÓôúÂëÖÕÖ¹ÔËÐС£
ÏÂÃæµÄ¼òµ¥´úÂë¾ÍÊÇÑÝʾ¹Ø±ÕÒ³Ãæºó£¬¿´ÊÇ·ñÈÔÈ»ÔÚÖ´ÐУ¿
Äã¿ÉÒÔÔÚÕâ¸öÒ³Ãæ´ò¿ªºó£¬ »¹Ã»Óзµ»ØÈκÎÐÅÏ¢µÄʱºò°ÑÕâ¸öÒ³Ãæ¹Ø±Õ£¬È»ºó¿´Ö¸¶¨Ä¿Â¼ÏÂÊÇ·ñÓжÔÓ¦Îļþ±»´´½¨²¢ÌîдÄÚÈÝ¡£
protected void Page_Load(object sender, EventArgs e)
{
StringBuilder txt = new StringBuilder();
txt.AppendLine();
txt.AppendLine(DateTime.Now.ToString("u"));
txt.AppendLine("asvd");
Response.Write(DateTime.Now.ToString("u"));
Response.Write("
\r\n");
Thread.Sleep(50000);
txt.AppendLine(DateTime.Now.ToString("u"));
Response.Write(DateTime.Now.ToString("u"));
Response.Write("
\r\n");
// °ÑһЩÐÅϢдµ½ÁíÍâÒ»¸öÎļþ,½è´Ë²ì¿´ÊÇ·ñÕýÔÚÔËÐÐ
string dir = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "logs");
if (!Directory.Exists(dir))
Directory.CreateDirectory(dir);
DateTime dt = DateTime.Now;
string shortfileName = string.Format("errors_{0:0000}{1:00}{2:00}.log", dt.Year, dt.Month, dt.Day);
string fileName = Path.Combine(dir, shortfileName);
StreamWriter sw;
if (File.Exists(fileName))
sw = File.AppendText(fileName);
else
sw = File.CreateText(fileName);
sw.Write(txt.ToString());
sw.Close();
sw = null;


Ïà¹ØÎĵµ£º

ASP.NET

      Localize Web ·þÎñÆ÷¿Ø¼þʹÄú¿ÉÒÔÔÚÒ³µÄÌض¨ÇøÓòÖÐÏÔʾ±¾µØ»¯ºóµÄÎı¾¡£
 
Ò»¡¢±³¾°
Localize ¿Ø¼þÓë Literal Web ·þÎñÆ÷¿Ø¼þÍêÈ«Ïàͬ£¬²¢Óë Label Web ·þÎñÆ÷¿Ø¼þÏàËÆ¡£ËäÈ» Label ¿Ø¼þ¿ÉÈÃÄúÏòÏÔʾµÄÎı¾Ó¦ÓÃÑùʽ£¬µ« Localize ¿Ø¼þ²»ÔÊÐíÕâÑù×ö¡£Í¨¹ýÉèÖÃ´Ó Literal ¿Ø¼þ¼Ì³ÐµÄ ......

½â¾öASP.NETϵÄMENU¿Ø¼þÔÚIE8Öв»ÏÔʾµÄÎÊÌâ

Ô­µØÖ·£ºhttp://blogs.msdn.com/giorgio/archive/2009/02/01/asp-net-menu-and-ie8-rendering-white-issue.aspx
ASP.NET Menu and IE8 rendering white issue
If you are using the ASP.NET Menu control, you might encounter under certain circumstances an issue where the menu appears as a white box in IE8 Stan ......

ASP.NET

Îå¡¢ViewCollection Àà
      ViewCollection Àà±íʾһ¸ö¼¯ºÏÈÝÆ÷£¬¸ÃÈÝÆ÷ʹ MultiView ¿Ø¼þ¿ÉÒÔά»¤Æä×ӿؼþÁÐ±í¡£MultiView ¿Ø¼þÖ»ÄÜ°üº¬ View ¿Ø¼þ×÷Ϊ×ӿؼþ¡£
ʹÓà Add ·½·¨¿ÉÒÔ½«Ð嵀 View ¿Ø¼þÌí¼Óµ½ ViewCollection ¼¯ºÏÖеÄÐòºÅË÷ÒýÊý×éĩβ¡£Ê¹Óà AddAt ·½·¨¿ÉÒÔ½«Ð¿ؼþÌí¼Óµ½Ìض¨µ ......

ASP.NETºËÐļ¼Êõ|£®NET¼Ü¹¹µÄºËÐÄ¿ª·¢¼¼Êõ

 µ±ÄãÊǴӰٶȻògoogleËÑË÷ ¹Ø¼ü´Ê"ASP.NETºËÐļ¼Êõ","£®NETºËÐļ¼Êõ"¹ýÀ´µÄ»°,ÎÒºÜÏë±ÉÊÓÄãÒ»ÏÂ,ÕæµÄ,ÒòΪÎÒÓöµ½Ì«¶àµÄÕâÑùµÄÈËÁË,"ASP.NETºËÐļ¼Êõ","£®NETºËÐļ¼Êõ"ÕâÑùµÄÎÊÌâÕæµÄû±ØÒªÎÊ,ÓÐÒâ˼Âð,»ù´¡Åª¶®ÁËÂð,¾«Í¨ÁËasp.netÂð,»¹²»ÈçÎÊÎÊ"ASP.NET»ù´¡ÊÇʲô",»ù´¡¶¼Ã»ÓÐŪ¶®,¾ÍÒ»Ììµ½ÍíÔÚÄÇ×·ÇóºËÐÄÊÇʲô,ÕâЩ ......

ASP.NET


      PlaceHolder ¿Ø¼þʹÄú¿ÉÒÔ½«¿ÕÈÝÆ÷¿Ø¼þ·ÅÖõ½Ò³ÉÏ£¬È»ºóÔÚÔËÐÐʱ¶¯Ì¬µØ½«×ÓÔªËØÌí¼Óµ½¸ÃÈÝÆ÷ÖС£
 
Ò»¡¢±³¾°
PlaceHolder Web ·þÎñÆ÷¿Ø¼þʹÄú¿ÉÒÔ½«¿ÕÈÝÆ÷¿Ø¼þ·ÅÖõ½Ò³ÄÚ£¬È»ºóÔÚÔËÐÐʱ¶¯Ì¬Ìí¼Ó¡¢É¾³ý»òÒÀ´Îͨ¹ý×ÓÔªËØ¡£¸Ã¿Ø¼þÖ»³ÊÏÖÆä×ÓÔªËØ£»Ëü²»³ÊÏÖ×ÔÉíµÄÈκαê¼Ç¡£
ÀýÈ磬 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ