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

ASP.NETµÄ»º´æ»úÖƼ°¼¼ÊõʵÏÖ

 
»º´æ
»º´æ»úÖÆ
Ò³Êä³ö»º´æ£º±£´æÒ³´¦ÀíÊä³ö£¬Ï´ÎÖØÓÃËù±£´æµÄÊä³ö
Ó¦ÓóÌÐò»º´æ£ºÔÊÐí»º´æËùÉú³ÉµÄÊý¾Ý£¬ÈçDataSet
¢åÒ³Êä³ö»º´æ
1¡¢Ò³Êä³ö»º´æµÄ¼¸ÖÐÐÎʽ
¢Ù<%@ OutputCache Duration="60" VaryByParam="None" Location="Any"%>
LocationÖ¸¶¨ÔÚÄĸöµØ·½»º´æ£¬AnyÈκεط½¶¼»º´æ¡£
60ÃëÒÔÄÚ¿´µ½µÄ¶¼ÊÇÒ»ÑùµÄÁË¡£
¢Ú»¹¿ÉÔÚÅäÖÃÎļþÀïд£¬È»ºóÔÚÒ³Ãæµ÷ÓÃÅäÖÃÎļþµÄ»º´æÃû³Æ¡£
¢ÛÓñà³ÌµÄ·½Ê½£º
Response.Canche.SetExpires(DateTime.Now.AddSeconds(3));
Response.Canche.SetCacheabiliy(HttpCacheability.Public);
Response.Canche.SetValidUntilExpires(true);
Ï൱ÓÚ£º
Public => Any
Private => Client
NoCache => None
Server => Server
ServerAndPrivate =>ServerAndClient
2¡¢Ê¹ÓÃÎļþÒÀÀµÏ´æÒ³Êä³ö
²úÉú±³¾°£ºÓÐʱºò£¬¿ÉÄÜÐèÒªÔÚÎļþ·¢Éú¸ü¸Äʱ´ÓÊä³ö»º´æÖÐÒƳýijһÏî¡£¾ÍÊÇ˵Îļþ¸ÄÁËÒԺ󻺴æÁ¢¼´Ê§Ð§¡£
string filepath = Server.MapPath("TextFile1.txt");
Response.AddFileDependency(filepath);//Ìí¼Ó»º´æÒÀÀµÏî
Response.Cache.SetExpires(DateTime.Now.AddSeconds(60));
Response.Cache.SetCacheability(HttpCacheability.Public);
Response.Cache.SetValidUntiExpires(true);
3¡¢»º´æ¶à¸ö°æ±¾
¢ÙʹÓÃÇëÇóµÄä¯ÀÀÆ÷¶ÔÒ³µÄ¸÷¸ö°æ±¾½øÐлº´æ
<%@OutputCache Duration="10" VaryByParam="None" VaryByCustom="browser"%>
¢ÚʹÓòÎÊý¶ÔÒ³µÄ¸÷¸ö°æ±¾½øÐлº´æ
<%@OutputCache Duration="60" VaryByParam="City"%>
Õâ¸öµ÷ÊÔ¿ÉÒÔÔÚurlºó¼ÓQueryString
È磺...url?City=shanghai
³ÌÐòÀïµÃµ½Õâ¸öÉϺ£È»ºóÔÙ×öÆäËûµÄ²Ù×÷£¬Õâ¸öʱºòÈç¹û²ÎÊý´«µÄ»¹ÊÇshanghaiËü¾Í²»»áÔÚ×ßµ½³ÌÐòÀïÁË¡£
4¡¢¶¯Ì¬¸üлº´æÒ³µÄ²¿·Ö£¬ÓÐÈýÖÖ·½·¨¿ÉÒÔʵÏÖ²¿·Ö²»»º´æ
¢ÙÒÑÉùÃ÷·½Ê½Ê¹ÓÃSubstitution¿Ø¼þ
<asp:Substitution ID="Substitution1" runat="server" MethodName="GetCurrentDateTime" />
public static string GetCurrentDateTime(HttpContext context)
{
return DateTime.Now.ToString();
}
//·½·¨Ç©Ãû±ØÐëºÍίÍÐÇ©ÃûÒ»ÖÂ
¢ÚÒÔ±à³ÌµÄ·½Ê½Ê¹ÓÃSubstitution¿Ø¼þAPI
Response.WriteSubstitution(new HttpResponseSubstitutionCallback(GetCurrentDateTime))
¢ÛÒÔÒþʽ·½Ê½Ê¹ÓÃAdRotator¿Ø¼þ
Õâ¸ö¿Ø¼þÓÀÔ¶¶¼ÊDz»»º´æµÄ
¢æSQL ServerÒÀÀµµÄ»º´æ£¬·Ç³£Ö®ÓÐÓÃ
µ±±íÊý¾Ý


Ïà¹ØÎĵµ£º

FCKeditor ÅäÖá¢À©Õ¹ ½öÊÊÓÃÓÚASP.NET

Ò»¡¢×Ô¶¨Òå FCKeditor µÄ BasePathBasePath ¼´FCKeditorÔÚÍøÕ¾ÖеÄÏà¶Ô·¾¶£¬Ä¬ÈÏÖµÊÇ /fckeditor/£¬×îºÃÔÚWeb.config appSettingsÖжÔÆä½øÐÐÅäÖãº
<add key="FCKeditor:BasePath" value="/FCKeditor_2.6.3/"/>
ÕâÑù×öÓÐÖî¶àÓŵ㣺
1.¿ª·¢»·¾³ÓëÉú²ú»·¾³²»Í¬£¬¿ª·¢»·¾³Ò»°ãÊÇhttp://localhost/xxx.com/ÕâÖÖÇé¿öÏ ......

ASP.NET±éÀú¿Ø¼þµÄ¼¸ÖÖ·½·¨

·½·¨Ò»:javascript·¨ function btnClear() { for(i=0;i /// Çå¿ÕÖ¸¶¨Ò³ÃæÉÏËùÓеĿؼþÄÚÈÝ£¬°üÀ¨TextBox£¬CheckBox,CheckBoxList,RadioButton,RadioButtonList¡£µ«ÊDz»Çå /// ³ýÈçListBox£¬DropDownList£¬ÒòΪÕâÑùµÄ¿Ø¼þÖµ¶Ôµ±Ç°Ò³ÃæÀ´Ëµ»¹¿ÉÒÔÓã¬Ò»°ãÕâЩ¿Ø¼þÀﶼÊDZ£´æµÄ×ÖµäÊý¾Ý¡£ /// Author£ºKevin /// ÈÕÆÚ£º2004-12 ......

asp.net ÉÏ´«ÅжÏÎļþÊÇ·ñΪͼƬ

         private bool IsPicture(string filePath)//filePathÊÇÎļþµÄÍêÕû·¾¶
        {
            try
           ......

ASP.NET¿ªÔ´CMS aaaaatiger

À´Ô´£ºhttp://www.ej38.com/showinfo/asp.net-180538.html
1. DotNetNuke(ASP.NET 2.0) ¸öÈËÍƼöÉîÈëÑо¿
DotNetNukeÊÇÒ»¸öWebÓ¦Óÿò¼ÜµÄÀíÏë,Ϊ´´½¨ºÍ²¿ÊðµÄÏîÄ¿,ÈçÉÌÒµÍøÕ¾,ÆóÒµÄÚÁªÍøºÍÍâÁªÍø,ÔÚÍøÉϳö°æÃÅ»§,²¢¶¨ÖÆ´¹Ö±Ó¦ÓÃÈí¼þ¡£ ·½±ãÓû§-DotNetNukeÖ¼ÔÚʹÓû§¿ÉÒÔ¸üÇáËɵعÜÀíËùÓз½ÃæµÄÏîÄ¿¡£
ÏÂÔØÍøÖ·:http:// ......

asp.net ÖеÄcache

.netÖкÎÓÐЧµÄʹÓÃCache
Cache ¼´¸ßËÙ»º´æ £¬ÄÇôcacheÊÇÈçºÎÌá¸ßϵͳÐÔÄÜÓëÔËÐÐËÙ¶ÈÄØ£¿ÊDz»ÊÇÔÚÈκÎÇé¿öÏÂÓÃcache¶¼ÄÜÌá¸ßÐÔÄÜ£¿ÊDz»ÊÇcacheÓõÄÔ½¶à¾ÍÔ½ºÃÄØ£¿ÏÂÃæÊÇ×ܽ᣺ 
1.       Cache ÊÇÈçºÎ¹¤×÷µÄ   l         Cache ÊÇ·ÖÅ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ