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

ÍøÕ¾ÖÐä¯ÀÀÆ÷»º´æµÄ¿ØÖÆ(IIS+ASP.Net)

ÍøÕ¾ÖÐä¯ÀÀÆ÷»º´æµÄ¿ØÖÆ(IIS+ASP.Net)
 
 
 
ÔÚIIS6.0 + Windows Server 2003ͨ¹ý²âÊÔ¡£ÈçÓдíÎó¾´ÇëÖ¸Õý¡£
 
1¡¢  IIS¿ØÖÆ£¨¶ÔJsµÈÎļþ£©£º
ÔÚIIS¹ÜÀíÆ÷Öв鿴ÎļþÊôÐÔ£¬ÔÚHTTPÍ·µÄTabÒ³ÖУ¬ÉèÖÓÆôÓÃÄÚÈݹýÆÚ”¡£
l         IISĬÈÏ£¨²»¹´Ñ¡£©£º
 
 
ÔÚͬһ¸öä¯ÀÀÆ÷´°¿ÚÄÚ£¨°üÀ¨ÄÚ²¿µÄ¿ò¼ÜÄÚ£©£¬²»¹ÜÊÇÄĸöÒ³Ã棬ÒýÓÃÕâ¸öjsÎļþʱ£¬¶¼²»»áÈ¥·þÎñÆ÷ÏÂÔØ¡£µ±¹Øµôä¯ÀÀÆ÷пª´°¿Ú£¬»òÊǵ¯³öеĴ°¿Úʱ£¬»òÊÇ°´F5ˢУ¬¶¼»áÖØÐÂÏÂÔØjs¡£
l         Á¢¼´¹ýÆÚ£º
 
ÎÞÂÛÄÄÖÖÇé¿öÏ£¬¶¼»áÖØÐÂÏÂÔØjsÎļþ¡£
l         ÉèÖÃʱÏÞ»ò¹ýÆÚʱ¼ä£º
 
 
µ±ÒѾ­¹ýÆÚʱ£¬ÎÞÂÛÄÄÖÖÇé¿öÏ£¬¶¼»áÖØÐÂÏÂÔØjsÎļþ¡£
µ±Ã»¹ýÆÚʱ£¬²»»áÖØÐÂÏÂÔØjsÎļþ£¬¼´Ê¹¹Øµôä¯ÀÀÆ÷ÖØ¿ª´°¿ÚÒ²²»»á¡£F5ʱ»áÖØÐÂÏÂÔØ¡£
 
 
2¡¢  ·þÎñ¶Ë¿ØÖÆ£¨¶ÔaspxµÈ³ÌÐòÎļþ£©£º
ÔÚ´úÂëÖнøÐÐÉèÖá£
l        ÉèÖûº´æ·½Ê½£ºResponse.Cache.SetCacheability(HttpCacheability.Server);
l        ÉèÖùýÆÚ£º Response.Cache.SetMaxAge(new TimeSpan(1, 1, 1));
       »ò   Response.Cache.SetExpires(DateTime.Now.AddHours(1));
 
»º´æ·½Ê½
Public
Server
NoCache
Private
ÓÐÉèÖùýÆÚ
δ¹ýÆÚʱ£¬ÎÞÂÛÈçºÎ¶¼²»ÖØÐÂÏÂÔØ£¬¼´Ê¹F5Ë¢ÐÂÒ²²»¡£¹ýÆÚºóÈκÎÇé¿ö¶¼ÖØÐÂÏÂÔØ
δ¹ýÆÚʱ£¬³ý·Ç°´F5ˢУ¬·ñÔò²»ÏÂÔØ£¬¹ØµôÖØ¿ª´°¿ÚÒ²²»¡£¹ýÆÚºóÈκÎÇé¿ö¶¼ÖØÐÂÏÂÔØ¡£
ûÉèÖùýÆÚ
ÈκÎÇé¿ö¶¼»áÈ¥·þÎñÆ÷ÏÂÔØ
3¡¢  ²¹³ä˵Ã÷£º
ASPXÎļþÔÚIISÖÐÉèÖÃHTTPÍ·ÎÞЧ¡£
 


Ïà¹ØÎĵµ£º

asp.net(c#)ÍøÒ³ÌøתÆßÖÖ·½·¨

1.Response.Redirect("http://www.jb51.net",false);
Ä¿±êÒ³ÃæºÍÔ­Ò³Ãæ¿ÉÒÔÔÚ2¸ö·þÎñÆ÷ÉÏ£¬¿ÉÊäÈëÍøÖ·»òÏà¶Ô·¾¶¡£ºóÃæµÄboolֵΪÊÇ·ñÍ£Ö¹Ö´Ðе±Ç°Ò³¡£
ÌøתÏòеÄÒ³Ã棬ԭ´°¿Ú±»´úÌæ¡£"
ä¯ÀÀÆ÷ÖеÄURLΪз¾¶¡£
:Response.Redirect·½·¨µ¼ÖÂä¯ÀÀÆ÷Á´½Óµ½Ò»¸öÖ¸¶¨µÄURL¡£µ±Response.Redirect()·½·¨± ......

ת:ASP.NETÒ³Ãæ´«ÖµµÄ¼¸ÖÖ·½Ê½

Ò». ʹÓÃQueryString±äÁ¿
¡¡¡¡¡¡¡¡QueryStringÊÇÒ»Öַdz£¼òµ¥Ò²ÊÇʹÓñȽ϶àµÄÒ»ÖÖ´«Öµ·½Ê½£¬µ«ÊÇËü½«´«µÝµÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖÐ,Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£
         Response.Redirect( "target.aspx?param1=hello& ......

ÈÏʶASP.NETÅäÖÃÎļþWeb.config


ÈÏʶASP.NETÅäÖÃÎļþWeb.config
×÷ÕߣºSabine¡¡À´Ô´£ºÈüµÏÂÛ̳
¡¡¡¡Ò»¡¢ÈÏʶWeb.configÎļþ
Web.configÎļþÊÇÒ»¸öXMLÎı¾Îļþ£¬ËüÓÃÀ´´¢´æ ASP.NET Web Ó¦ÓóÌÐòµÄÅäÖÃÐÅÏ¢£¨Èç×î³£ÓõÄÉèÖÃASP.NET Web Ó¦ÓóÌÐòµÄÉí·ÝÑéÖ¤·½Ê½£©£¬Ëü¿ÉÒÔ³öÏÖÔÚÓ¦ÓóÌÐòµÄÿһ¸öĿ¼ÖС£µ±Äãͨ¹ýVB.NETн¨Ò»¸öWebÓ¦ÓóÌÐòºó£¬Ä¬ÈÏÇé¿ ......

Paging long articles in ASP.NET using C#

Paging long articles in ASP.NET using C#
Long articles are better broken into bite-sized chunks over several pages. With static HTML, this is easily achieved by dividing the article into logical separations and creating separate .htm files for each. Here's how to do it using C# for an article that ......

´íÎó¼Ç¼£ºASP.NET(C#)ÖÐδÄܼÓÔØ×Ô¶¨ÒåÀàÐÍ£¨Àࣩ

»·¾³£ºASP.NET(C#)£¬Visual Studio 2010¡£
Ìáʾ£ºÎ´ÄܼÓÔØÀàÐÍ“EMS.App_Code.PersonalInfo”¡£Èç¹û¸ÃÀàÐÍλÓÚApp_CodeÎļþ¼ÐÖУ¬Çë¼ì²éËüÊÇ·ñÒѱàÒë¡£Èç¹û¸ÃÀàÐÍλÓÚÒѱàÒëµÄ³ÌÐò¼¯ÖУ¬Çë¼ì²é¸Ã³ÌÐò¼¯ÊÇ·ñ±»¸ÃÏîÄ¿ÒýÓá£
´¦Àí£º
×Ô¼º×öµÃÒ»¸öС³ÌÐò£¬È¡ÃûEMS£¬²¢ÔÚApp_CodeÎļþ¼ÐϽ¨Á¢ÁËÀàPersonalInfo¡¢Sal ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ