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

asp.netÈÕÖ¾

                    string path = "...\\Debug\\log.txt";
                    if (!File.Exists(path))
                    {
                        StreamWriter sw1;
                        sw1 = File.CreateText(path);
                        sw1.Close();
                    }
                    string str = System.DateTime.Now.Year.ToString() + "Äê" + System.DateTime.Now.Month.ToString() + "ÔÂ" + System.DateTime.Now.Day.ToString() + "ÈÕ " + System.DateTime.Now.Hour.ToString() + ":" + System.DateTime.Now.Minute.ToString() + ":" + System.DateTime.Now.Second.ToString() + "  " + "Êý¾ÝWeb·þÎñÎÞ·¨·ÃÎÊ»òÕßÍøÂ粻ͨ. ";
                    StreamWriter sw = File.AppendText(path);
                    sw.WriteLine(str);
                    sw.Close();
                    return;


Ïà¹ØÎĵµ£º

ASP.NET Ò³ÃæÖ¸Áî Ö® @OutputCache

»º´æµÄÖØÒªÐԾͲ»ÓÃÔÙÇ¿µ÷ÁË£¬@OutputCache¸øÎÒÃÇÌṩÁËÒ»ÖÖÉùÃ÷µÄ·½Ê½(¶ÔÓ¦µÄ»¹Óбà³ÌµÄ·½Ê½)À´¿ØÖÆÒ³ÃæºÍÓû§¿Ø¼þµÄ»º´æ²ßÂÔ£¬ÕâÊÇÒ»ÖÖ×î¼òµ¥Ö±½ÓµÄÍøÕ¾ÓÅ»¯·½Ê½¡£
»¹ÊÇÏÈÀ´¹ýÒ»±é@OutpuCacheËùÓеÄÊôÐÔ£¬¹²ÓÃ11¸öÊôÐÔ£¬Õâ¸öÖ¸Áî¿ÉÒÔÓÃÓÚÒ³Ãæ(.aspx)ºÍÓû§¿Ø¼þ(.ascx)
ÊôÐÔ
Duration
Ò³»òÓû§¿Ø¼þ½øÐлº´æµÄʱ¼ä£¬µ¥Î ......

ASP.NET´ò¿ªÐ´°¿Ú·½·¨

ASP.NET´ò¿ªÐ´°¿Ú·½·¨Ò»:
Response.Write(" <script language=\"javascript\">window.open('aaa.aspx','д°¿Ú,\"toolbar=yes,location=no,directories=yes,status=yes,menubar=yes,resizable=yes,scrollbars=yes\"); </script>");
ÕâÖÖ·½Ê½´úÂëÿ´ÎÊÇÉú³ÉÔÚÒ³Ãæ×î¶¥¶Ë
ASP.NET´ò¿ªÐ´°¿Ú·½·¨¶þ:
stri ......

ASP.NET MVC 2 Ä£°æÏµÁÐ2: ModelMetadata

ͬÑùÊÇһƪתÌûµÄÎÄÕÂ,
Ô­ÎÄ: http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-2-modelmetadata.html 
×ÅÖØ½éÉÜÁËASP.NET MVC2 ÀïÃæµÄ ModelMetadata Àà
ASP.NET MVC 2 Templates, Part 2: ModelMetadata
Series Index
Part 1: Introduction
Part 2: ModelMetadata
Understanding You ......

ASP.net ·ÂQQµ¯³ö´°¿Ú

 ASP.net ·ÂQQµ¯³ö´°¿Ú
¡²×ª¡³http://hi.baidu.com/liyukun8203/blog/item/d9244dfcdb78e388b901a019.html
×î½üÔÚ×öÄÚ²¿¹ÜÀí,ÐèÒªÓõ½Õâ¸ö¶«Î÷À´ÌáÐÑ,ËùÒԾͰÑËü×ö³ÉÒ»¸öÀà,Ö±½Óµ÷ÓÃ,Âú·½±ãµÄ.ÌùһϴúÂë,´ó¼Ò¿´Ò»ÏÂ
Code
1 using System;
2 using System.Web;
3 using System.Collections.Generic;
4 using Sy ......

[ת]asp.netÇø·ÖÖÐÓ¢ÎÄ×Ö·û´®½ØÈ¡

/// <summary>
/// ×Ö·û´®Çиî
/// </summary>
/// <param name="p_SrcString"></param>
/// <param name="p_Length"></param>
/// <returns></returns>
public static string GetSubString(string p_SrcString, int ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ