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

¸÷°æ±¾IISÏÂASP.netÇëÇó´¦Àí¹ý³Ì

ASP.NETÊÇÒ»¸ö·Ç³£Ç¿´óµÄ¹¹½¨WebÓ¦ÓõÄƽ̨£¬ËüÌṩÁ˼«´óµÄÁé»îÐÔºÍÄÜÁ¦ÒÔÖÂÓÚ¿ÉÒÔÓÃËüÀ´¹¹½¨ËùÓÐÀàÐ͵ÄWebÓ¦Óá£
¾ø´ó¶àÊýµÄÈËÖ»ÊìϤ¸ß²ãµÄ¿ò¼ÜÈ磺 WebForms ºÍ WebServices --ÕâЩ¶¼ÔÚASP.NET²ã´Î½á¹¹ÔÚ×î¸ß²ã¡£
ÕâƪÎÄÕµÄ×ÊÁÏÊÕ¼¯ÕûÀí×Ô¸÷ÖÖ΢Èí¹«¿ªµÄÎĵµ£¬Í¨¹ý±È½Ï IIS5¡¢IIS6¡¢IIS7 ÕâÈý´ú IIS ¶ÔÇëÇóµÄ´¦Àí¹ý³Ì£¬ ÈÃÎÒÃÇÊìϤ ASP.NETµÄµ×²ã»úÖÆ ²¢¶ÔÇëÇó(request)ÊÇÔõô´ÓWeb·þÎñÆ÷´«Ë͵½ASP.NETÔËÐÐʱÓÐËùÁ˽⡣ͨ¹ý¶Ôµ×²ã»úÖƵÄÁ˽⣬¿ÉÒÔÈÃÎÒÃÇ¶Ô ASP.net ÓиüÉîµÄÀí½â¡£
IIS 5 µÄ ASP.net ÇëÇó´¦Àí¹ý³Ì
¶ÔͼµÄ½âÊÍ£º
IIS 5.x Ò»¸öÏÔÖøµÄÌØÕ÷¾ÍÊÇ Web Server ºÍÕæÕýµÄ ASP.NET Application µÄ·ÖÀë¡£×÷Ϊ Web Server µÄIISÔËÐÐÔÚÒ»¸öÃûΪ InetInfo.exe µÄ½ø³ÌÉÏ£¬InetInfo.exe ÊÇÒ»¸öNative Executive£¬²¢²»ÊÇÒ»¸öÍйܵijÌÐò£¬¶øÎÒÃÇÕæÕýµÄ ASP.NET Application ÔòÊÇÔËÐÐÔÚÒ»¸ö½Ð×ö aspnet_wp µÄ Worker Process ÉÏÃ棬Ôڸýø³Ì³õʼ»¯µÄʱºò»á¼ÓÔØCLR£¬ËùÒÔÕâÊÇÒ»¸öÍйܵĻ·¾³¡£
ISAPI£º  Ö¸Äܹ»´¦Àí¸÷ÖÖºó׺ÃûµÄÓ¦ÓóÌÐò¡£ ISAPI ÊÇÏÂÃæµ¥´ÊµÄ¼òд £ºInternet Server Application Programe Interface£¬»¥ÁªÍø·þÎñÆ÷Ó¦ÓóÌÐò½Ó¿Ú¡£
IIS 5 ģʽµÄÌص㣺
Ê×ÏÈ£¬Í¬Ò»Ì¨Ö÷»úÉÏÔÚͬһʱ¼äÖ»ÄÜÔËÐÐÒ»¸ö aspnet_wp ½ø³Ì£¬Ã¿¸ö»ùÓÚÐéÄâĿ¼µÄ ASP.NET Application ¶ÔÓ¦Ò»¸ö Application Domain £¬Ò²¾ÍÊÇ˵ÿ¸ö Application ¶¼ÔËÐÐÔÚͬһ¸ö Worker Process ÖУ¬ApplicationÖ®¼äµÄ¸ôÀëÊÇ»ùÓÚ Application Domain µÄ£¬¶ø²»ÊÇ»ùÓÚProcessµÄ¡£
Æä´Î£¬ASP.NET  ISAPI ²»µ«¸ºÔð´´½¨ aspnet_wp Worker Process£¬¶øÇÒ¸ºÔð¼à¿Ø¸Ã½ø³Ì£¬Èç¹û¼ì²âµ½ aspnet_wp µÄ Performance ½µµÍµ½Ä³¸öÉ趨µÄÏÂÏÞ£¬ASP.NET  ISAPI »á¸ºÔð½áÊøµô¸Ã½ø³Ì¡£µ± aspnet_wp ½áÊøµôÖ®ºó£¬ºóÐøµÄ Request »áµ¼ÖÂASP.NET ISAPI ÖØд´½¨Ð嵀 aspnet_wp Worker Process¡£
×îºó£¬ÓÉÓÚ IIS ºÍ Application ÔËÐÐÔÚËûÃǸ÷×ԵĽø³ÌÖУ¬ËûÃÇÖ®¼äµÄͨÐűØÐë²ÉÓÃÌض¨µÄͨÐÅ»úÖÆ¡£±¾ÖÊÉÏ IIS ËùÔÚµÄ InetInfo ½ø³ÌºÍ Worker Process Ö®¼äµÄͨÐÅÊÇͬһ̨»úÆ÷²»Í¬½ø³ÌµÄͨÐÅ£¨local interprocess communications£©£¬´¦ÓÚPerformanceµÄ¿¼ÂÇ£¬ËûÃÇÖ®¼ä²ÉÓûùÓÚNamed pipeµÄͨÐÅ»úÖÆ¡£ASP.NET ISAPIºÍWorker ProcessÖ®¼äµÄͨÐÅͨ¹ýËûÃÇÖ®¼äµÄÒ»×éPipeʵÏÖ¡£Í¬Ñù´¦ÓÚPerformanceµÄÔ­Òò£¬ASP.NET ISAPI ͨ¹ýÒì²½µÄ·½Ê½½«Request ´«µ½Worker Process ²¢»ñµÃ Response£¬µ«ÊÇ W


Ïà¹ØÎĵµ£º

ASP.NET System.Web.HttpContextÀàCurrentÊôÐÔ

1¡¢.NetµÄHTTPÇëÇó
.NETÓëASPµÄÔËÐлúÖÆÓкܴó²»Í¬.
ASPµÄÇëÇóÓëÏìÓ¦ÊÇ,ASPÒ³Ãæ±»ÇëÇó,È»ºóÖðÐнâÊÍ.ÊÇ»ùÓÚ¹ý³ÌµÄ.×î¶àÊÇ°üº¬ÁËÎļþ,ÐèÒªÏÈÒýÈëÎļþ°ÕÁË.
¶ø.Net,ÔÚÒ³Ãæ±»ÇëÇóºó,Ê×ÏÈÊǼÓÔØHTTP Module,Õâ²»ÊDZ¾ÎĵÄÖصã.È»ºóÔÙ¼ÓÔØHTTP
Handler.ÕâÒ²²»ÊDZ¾ÎĵÄÖصã.¼ÓÔصÄÕâÁ½Ïî,¶¼ÐèÒªÔÚWebconfigÎļþÖÐÅäÖÃ.´ó¼ÒÖªµÀ ......

ÀûÓÃCache£¬asp.net ¼òµ¥ÊµÏÖ¶¨Ê±Ö´ÐÐÈÎÎñ

private
 
static
 CacheItemRemovedCallback OnCacheRemove 
=
 
null
;
protected
 
void
 Application_Start(
object
 sender, EventArgs e)
{
    AddTask(
"
DoStuff
"

60
);
}
private
 
vo ......

ASP.NETÖеÄEval£¨£©ºÍDataBinder.Eval£¨£©·½·¨

ASP.NETÖеÄEval£¨£©ºÍDataBinder.Eval£¨£©·½·¨
2009-12-12 17:55
Eval( " ")ºÍBind( " ")¡¡ÕâÁ½ÖÖÒ»¸öµ¥Ïò°ó¶¨£¬Ò»¸öË«Ïò°ó¶¨
bindÊÇË«Ïò°ó¶¨,µ«ÐèÊý¾ÝÔ´¿É¸ü¸Ä²ÅÄÜÓÃ
ASP.NET 2.0¸ÄÉÆÁËÄ£°åÖеÄÊý¾Ý°ó¶¨²Ù×÷£¬°Ñv1.xÖеÄÊý¾Ý°ó¶¨Óï·¨DataBinder.Eval(Container.DataItem, fieldname)¼ò»¯ÎªEval(fieldname)¡£Eval·½· ......

ASP.NET+JQueryʵÏÖAJAXµÄ·ÖÒ³

  AJAXµÄ·ÖÒ³£¬ÊµÏÖ˼·ÊÇ£º
¡¡¡¡1.ÀûÓÃ$.fn.extendÔÚJQuery¿ò¼ÜÏÂÀ©Õ¹pagerÀà
¡¡¡¡2.½«»ñÈ¡¼Ç¼×ÜÊýÓëÏàÓ¦Ò³¼Ç¼µÄºǫ́·½·¨£¬Ð´Ôڼ̳Ð×ÔIHttpHandlerÀàµÄHandler.ashx.csÀ࣬µ±È»Êµ¼ÊÉÏÓÃaspx.csÎļþдºǫ́·½·¨Ò²Ã»ÎÊÌ⣬µ«ÓÉÓÚ.ashx.csÎļþÎÞÐè´¦ÀíÒ³ÃæÖî¶àʼþÒò¶øЧÂʸü¸ß¡£
¡¡¡¡3.ÔÚ³ÊÏÖÒ³ÃæÉϼÓÔØpagerÀà
¡¡ ......

ASP.NETÖÐcookie¶Áд·½·¨½éÉÜ

Cookie (HttpCookieµÄʵÀý)ÌṩÁËÒ»ÖÖÔÚ Web Ó¦ÓóÌÐòÖд洢Óû§Ìض¨ÐÅÏ¢µÄ·½·¨¡£ÀýÈ磬µ±Óû§·ÃÎÊÄúµÄÕ¾µãʱ£¬Äú¿ÉÒÔʹÓÃCookie ´æ´¢Óû§Ê×Ñ¡Ïî»òÆäËûÐÅÏ¢¡£µ±¸ÃÓû§ÔٴηÃÎÊÄúµÄÍøվʱ£¬Ó¦ÓóÌÐò±ã¿ÉÒÔ¼ìË÷ÒÔÇ°´æ´¢µÄÐÅÏ¢¡£
ASP.NETÖеÄcookie£º´´½¨Cookie·½·¨ (1)
Response.Cookies["userName"].Value = “admin" ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ