欢迎来到天天文库
浏览记录
ID:12910261
大小:81.00 KB
页数:12页
时间:2018-07-19
《计算机科学与技术英文文献(精选)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、东北石油大学本科毕业设计(英文文献)IntroductiontoASP.NETDevelopmentToovercometheperformanceandscalabilityproblemsthatCGIbrings,Microsoftdevelopedanewwayfordeveloperstobuildscalableapplications.ThishighperformancealternativeiscalledtheInternetServerApplicationProgrammingInterface(ISAPI).Insteadofhousin
2、gfunctionalityinexecutablefiles,ISAPIusesDLLs.UsingDLLsinsteadofexecutableprogramshassomedefiniteperformanceandscalabilityadvantagesTheISAPIextensioncouldalsobecalledwithargumentsthatwillallowasingleISAPIextensiontoperformmultipletasks.JustasintheCGIexample,thedirectorymusthaveexecute
3、permissionsenabled,ortheDLLwillbedownloadedtotheclientratherthanrunontheserver.ISAPIextensionsaretypicallyusedtoprocessclientrequestsandoutputaresponseasHTML,whichisverysimilartothewayCGIprogramsareused.ISAPIfiltersperformafunctionthatcan’tbedirectlyduplicatedwithCGIapplications.ISAPI
4、filtersareneverexplicitlycalled;instead,theyarecalledbyIISinresponsetocertaineventsinthelifeofarequest.ThedevelopercanrequestthatanISAPIfilterbecalledwheneveranyofthefollowingeventsoccur:1.Whentheserverhaspreprocessedtheclientheaders2.Whentheserverauthenticatestheclient3.Whentheserver
5、ismappingalogicalURLtoaphysicalURL4.Beforerawdataissentfromtheclienttotheserver5.Afterrawdataissentfromtheclienttotheserverbutbeforetheserverprocessesit6.Whentheserverlogsinformation7.WhenthesessionisendingAswithanyfilter,ISAPIfiltersshouldrequestonlythenotificationsitrequiresandproce
6、ssthemasquicklyaspossible.OneofthemorecommonusesofISAPIfiltersistoprovidecustomauthentication.AnotheruseistomodifytheHTMLthatwillbesenttotheclient.Forexample,anISAPIfiltercouldbeusedtochangethebackgroundcolorofeachpage.BecauseISAPIfiltersaren’tnearlyascommonasISAPIextensions,Iwon’tcov
7、erthemanyfurtherinthisbook.IfyouwanttolearnmoreaboutISAPIextensions,youcancheckoutmybookInsideServer-BasedApplications(MicrosoftPress,1999).ISAPIspecifiesseveralentry-pointfunctionsthatmustbeexportedfromtheDLL.Usingtheseentrypoints,IIScanloadtheDLL;callthefunctionsthatitimplements,pas
8、singi
此文档下载收益归作者所有