欢迎来到天天文库
浏览记录
ID:236065
大小:38.14 KB
页数:10页
时间:2017-07-11
《ASP.NET 页面对象模型-外文翻译》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、原文摘自:lvarJacobson.Object-OrientedSoftwareEngineering.第1版.北京:人民邮电出版社,2005.10外文资料原文[ASP.NETPAGEOBJECTMODEL:]Summary:LearnabouttheeventingmodelbuiltaroundASP.NETWebpagesandthevariousstagesthataWebpageexperiencesonitswaytoHTML.TheASP.NETHTTPruntimegovernsthepipelineofobjectsthattransf
2、ormtherequestedURLintoalivinginstanceofapageclassfirst,andintoplainHTMLtextnext.Discovertheeventsthatcharacterizethelifecycleofapageandhowcontrolandpageauthorscanintervenetoalterthestandardbehavior.(6printedpages)Introduction:EachrequestforaMicrosoft®ASP.NETpagethathitsMicrosoft®I
3、nternetInformationServices(IIS)ishandedovertotheASP.NETHTTPpipeline.TheHTTPpipelineisachainofmanagedobjectsthatsequentiallyprocesstherequestandmakethetransitionfromaURLtoplainHTMLtexthappen.TheentrypointoftheHTTPpipelineistheHttpRuntimeclass.TheASP.NETinfrastructurecreatesoneinsta
4、nceofthisclasspereachAppDomainhostedwithintheworkerprocess(rememberthattheworkerprocessmaintainsonedistinctAppDomainpereachASP.NETapplicationcurrentlyrunning).TheHttpRuntimeclasspicksupanHttpApplicationobjectfromaninternalpoolandsetsittoworkontherequest.Themaintaskaccomplishedbyth
5、eHTTPapplicationmanagerisfindingouttheclassthatwillactuallyhandletherequest.Whentherequestisforan.aspxresource,thehandlerisapagehandler—namely,aninstanceofaclassthatinheritsfromPage.Theassociationbetweentypesofresourcesandtypesofhandlersisstoredintheconfigurationfileoftheapplicati
6、on.Moreexactly,thedefaultsetofmappingsisdefinedinthesectionofthemachine.configfile.However,theapplicationcancustomizethelistofitsownHTTPhandlersinthelocalweb.configfile.ThelinebelowillustratesthecodethatdefinestheHTTPhandlerfor.aspxresources.7、type="System.Web.UI.PageHandlerFactory"/>Anextensioncanbeassociatedwithahandlerclass,ormoreingeneral,withahandlerfactoryclass.Inallcases,theHttpApplicationobjectinchargefortherequestgetsanobjectthatimplementstheIHttpHandlerinterface.Iftheassociationresource/classisresolvedintermso8、faHTTPhandler,thenthereturnedclas
7、type="System.Web.UI.PageHandlerFactory"/>Anextensioncanbeassociatedwithahandlerclass,ormoreingeneral,withahandlerfactoryclass.Inallcases,theHttpApplicationobjectinchargefortherequestgetsanobjectthatimplementstheIHttpHandlerinterface.Iftheassociationresource/classisresolvedintermso
8、faHTTPhandler,thenthereturnedclas
此文档下载收益归作者所有