《asp中外文献.pdf》由会员分享,可在线阅读,更多相关《asp中外文献.pdf(29页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。
1、aspasp 中外文献中外文献外文资料原文外文资料原文Professional ASP.NET Web ServicesProfessional ASP.NET Web ServicesASP.NETASP.NET is is a a unifiedunified WebWeb developmentdevelopmentmodelmodel thatthat includesincludes thethe servicesservices necessarynecessary forforyouyou toto buildbuild enterprise-classenterprise-cl
2、ass WebWeb applicationsapplicationswith a minimum of coding.ASP.NET is part ofwith a minimum of coding.ASP.NET is part ofthethe.NET.NETFramework,Framework,andandwhenwhencodingcodingASP.NET applications you have access to classesASP.NET applications you have access to classesinin thethe.NET.NET Frame
3、work.Framework.YouYou cancan codecode youryourapplicationsapplications inin anyany languagelanguage compatiblecompatible withwiththe common language runtime(CLR),includingthe common language runtime(CLR),includingMicrosoftMicrosoft VisualVisual Basic,Basic,C#,C#,JScript.NET,JScript.NET,andandJ#.J#.T
4、heseThese languageslanguages enableenable youyou toto developdevelopASP.NETASP.NET applicationsapplications thatthat benefitbenefit fromfrom thethecommoncommonTheThelanguagelanguageASP.NETASP.NETruntime,runtime,pagepagetypetypeandandsafety,safety,controlscontrolsinheritance,and so on.inheritance,and
5、 so on.frameworkframework is is a a programmingprogramming frameworkframework thatthatrunsruns onon a a WebWeb serverserver toto dynamicallydynamically produceproduceand render ASP.NET Web pages.ASP.NET Weband render ASP.NET Web pages.ASP.NET Webpagespages cancan bebe requestedrequested fromfrom any
6、any browserbrowser ororclientclient device,device,andand ASP.NETASP.NET rendersrenders markupmarkup(such as HTML)to the requesting browser.As a(such as HTML)to the requesting browser.As arule,rule,youyou cancan useuse thethe samesame pagepage forfor multiplemultiplebrowsers,browsers,becausebecauseAS
7、P.NETASP.NETrendersrendersthetheappropriate markup for the browser making theappropriate markup for the browser making therequest.However,you can design your ASP.NETrequest.However,you can design your ASP.NETWebWeb pagepage toto targettarget a a specificspecific browser,browser,suchsuch asasMicrosof
8、tMicrosoftInternetInternetExplorerExplorer6,6,andandtaketakeadvantageadvantage ofof thethe featuresfeatures ofof thatthat browser.browser.ASP.NETASP.NETsupportssupportsmobilemobilecontrolscontrolsforforWeb-enabledWeb-enabled devicesdevices suchsuch asas cellularcellular phones,phones,handheldhandhel
9、dcomputers,computers,andandpersonalpersonaldigitaldigitalassistants(PDAs).assistants(PDAs).ASP.NETASP.NETWebWebpagespagesarearecompletelycompletelyobject-oriented.object-oriented.WithinWithin ASP.NETASP.NET WebWeb pagespagesyouyou cancan workwork withwith HTMLHTML elementselements usingusingproperti
10、es,properties,methods,methods,andand events.events.TheThe ASP.NETASP.NETpagepage frameworkframework removesremoves thethe implementationimplementationdetailsdetails ofof thethe separationseparation ofof clientclient andand serverserverinherentinherentininWeb-basedWeb-basedapplicationsapplicationsbyb
11、ypresentingpresenting a a unifiedunified modelmodel forfor respondingresponding totoclient events in code that runs at the server.Theclient events in code that runs at the server.Theframeworkframework alsoalso automaticallyautomatically maintainsmaintains thethestatestate ofof a a pagepage andand th
12、ethe controlscontrols onon thatthat pagepageduring the page processing life cycle.during the page processing life cycle.TheTheASP.NETASP.NETpagepageandandcontrolscontrolsframeworkframework alsoalso enablesenables youyou toto encapsulateencapsulatecommoncommonUIUIfunctionalityfunctionalityinineasy-to
13、-use,easy-to-use,reusable controls.Controls are written once,canreusable controls.Controls are written once,canbe used in many pages,and are integrated intobe used in many pages,and are integrated intothe ASP.NET Web page that they are placed inthe ASP.NET Web page that they are placed induring rend
14、ering.during rendering.TheTheASP.NETASP.NETpagepageandandcontrolscontrolsframework also provides features to control theframework also provides features to control theoverall look and feel of your Web site via themesoverall look and feel of your Web site via themesand skins.You can define themes and
15、 skins andand skins.You can define themes and skins andthenthen applyapply themthem atat a a pagepage levellevel oror atat a controla controllevel.level.InIn additionaddition toto themes,themes,youyou cancan definedefinemaster pages that you use to create a consistentmaster pages that you use to cre
16、ate a consistentlayout for the pages in your application.A singlelayout for the pages in your application.A singlemastermaster pagepage definesdefines thethe layoutlayout andand standardstandardbehaviorbehavior thatthat youyou wantwant forfor allall thethe pagespages(or(or a agroupgroup ofof pages)p
17、ages)inin youryour application.application.YouYou cancanthen create individual content pages that containthen create individual content pages that containthethe page-specificpage-specific contentcontent youyou wantwant toto display.display.WhenWhen usersusers requestrequest thethe contentcontent pag
18、es,pages,theytheymergemerge withwith thethe mastermaster pagepage toto produceproduce outputoutputthat combines the layout of the master page withthat combines the layout of the master page withthe content from the content page.the content from the content page.AllAllASP.NETASP.NET codecodeis iscomp
19、iled,compiled,whichwhichenablesenablesstrongstrongtyping,typing,performanceperformanceoptimizations,optimizations,andand earlyearly binding,binding,amongamong otherotherbenefits.benefits.OnceOnce thethe codecode hashas beenbeen compiled,compiled,thethecommoncommon languagelanguage runtimeruntime fur
20、therfurther compilescompilesASP.NETASP.NETcodecodetotonativenativecode,code,providingprovidingimproved performance.improved performance.ASP.NETASP.NET includesincludes a a compilercompiler thatthat willwillcompilecompileallallyouryourapplicationapplicationcomponentscomponentsincludingincluding pages
21、pages andand controlscontrols intointo anan assemblyassemblythat the ASP.NET hosting environment can thenthat the ASP.NET hosting environment can thenuse to service user requests.use to service user requests.In addition to the security features of.NET,In addition to the security features of.NET,ASP.
22、NETASP.NETprovidesprovidesananadvancedadvancedsecuritysecurityinfrastructureinfrastructureforforauthenticatingauthenticatingandandauthorizingauthorizing useruser accessaccess asas wellwell asas performingperformingotherothersecurity-relatedsecurity-relatedusersuserstasks.tasks.usingusingYouYoucancan
23、authenticateauthenticateWindowsWindowsauthenticationauthentication suppliedsupplied byby IIS,IIS,oror youyou cancanmanagemanage authenticationauthentication usingusing youryour ownown useruserdatabasedatabase usingusing ASP.NETASP.NET formsforms authenticationauthenticationandand ASP.NETASP.NET memb
24、ership.membership.Additionally,Additionally,youyoucan manage the authorization to the capabilitiescan manage the authorization to the capabilitiesandand information ofinformation of your Webyour Web application usingapplication usingWindowsWindows groupsgroups oror youryour ownown customcustom roler
25、oledatabasedatabase usingusing ASP.NETASP.NET roles.roles.YouYou cancan easilyeasilyremove,remove,addaddto,to,ororreplacereplace thesetheseschemesschemesdepending upon the needs of your application.depending upon the needs of your application.ASP.NETASP.NET alwaysalways runsruns withwith a a particu
26、larparticularWindowsWindows identityidentitysosoyouyoucancansecuresecure youryourapplicationapplication usingusing WindowsWindows capabilitiescapabilities suchsuch asasNTFSNTFS AccessAccess ControlControl ListsLists(ACLs),(ACLs),databasedatabasepermissions,permissions,andand soso on.on.ForFor moremo
27、re informationinformationon the identity of ASP.NET,on the identity of ASP.NET,ASP.NETASP.NETprovidesprovidesintrinsicintrinsicstatestatemanagementmanagement functionalityfunctionality thatthat enablesenables youyou totostorestore informationinformation betweenbetween pagepage requests,requests,such
28、suchasas customercustomer informationinformation oror thethe contentscontents ofof a ashoppingshoppingcart.cart.YouYou cancansavesaveandandmanagemanageapplication-specific,application-specific,page-specific,page-specific,session-specific,session-specific,user-specific,user-specific,andanddeveloper-d
29、efined information.This informationdeveloper-defined information.This informationcan be independent of any controls on the page.can be independent of any controls on the page.ASP.NETASP.NET offersoffers distributeddistributed statestate facilities,facilities,whichwhich enableenable youyou toto manag
30、emanage statestate informationinformationacross multiple instances of the same applicationacross multiple instances of the same applicationon one computer or on several computers.on one computer or on several computers.ASP.NETASP.NET applicationsapplications useuse a a configurationconfigurationsyst
31、em thatsystem that enablesenables youyou to defineto define configurationconfigurationsettings for your Web server,for a Web site,orsettings for your Web server,for a Web site,orforforindividualindividualapplications.applications.YouYou cancanmakemakeconfiguration settings at the time your ASP.NETco
32、nfiguration settings at the time your ASP.NETapplications are deployed and can add or reviseapplications are deployed and can add or reviseconfiguration settings at any time with minimalconfiguration settings at any time with minimalimpactimpact onon operationaloperational WebWeb applicationsapplica
33、tions andandservers.servers.ASP.NETASP.NET configurationconfiguration settingssettings arearestoredstored inin XML-basedXML-based files.files.BecauseBecause thesethese XMLXMLfilesfiles areare ASCIIASCII texttext files,files,it it is is simplesimple toto makemakeconfiguration changes to your Web appl
34、ications.configuration changes to your Web applications.You can extend the configuration scheme to suitYou can extend the configuration scheme to suityour requirements.your requirements.ASP.NET includes features that enable youASP.NET includes features that enable youtoto monitormonitor healthhealth
35、 andand performanceperformance ofof youryourASP.NETASP.NETapplication.application.ASP.NETASP.NEThealthhealthmonitoring enables reporting of key events thatmonitoring enables reporting of key events thatprovideprovide informationinformation aboutabout thethe healthhealth ofof ananapplicationapplicati
36、on andand aboutabout errorerror conditions.conditions.TheseTheseeventsevents showshow a a combinationcombination ofof diagnosticsdiagnostics andandmonitoringmonitoring characteristicscharacteristics andand offeroffer a a highhighdegreedegree ofof flexibilityflexibility inin termsterms ofof whatwhat
37、is is loggedloggedand how it is logged.and how it is logged.ASP.NETASP.NETapplications:applications:supportssupportstwotwogroupsgroupsofofperformanceperformancecounterscountersaccessibleaccessibletotoyouryourThe ASP.NET system performanceThe ASP.NET system performanceThe ASP.NET applicationThe ASP.N
38、ET applicationcounter groupcounter groupperformance counter groupperformance counter groupASP.NETASP.NET takestakes advantageadvantage ofof thethe run-timerun-timedebuggingdebugginginfrastructureinfrastructuretotoprovideprovidecross-languagecross-language andand cross-computercross-computer debuggin
39、gdebuggingsupport.support.YouYou cancan debugdebug bothboth managedmanaged andandunmanagedunmanaged objects,objects,asas wellwell asas allall languageslanguagessupportedsupported byby thethe commoncommon languagelanguage runtimeruntimeand script languages.and script languages.In addition,the ASP.NET
40、 page frameworkIn addition,the ASP.NET page frameworkprovides a trace mode that enables you to insertprovides a trace mode that enables you to insertinstrumentationinstrumentation messagesmessages intointo youryour ASP.NETASP.NETWeb pages.Web pages.ASP.NETASP.NET supports XMLsupports XML WebWeb serv
41、ices.services.AnAnXMLXML WebWeb serviceservice is is a a componentcomponent containingcontainingbusinessbusiness functionalityfunctionality thatthat enablesenables applicationsapplicationstoto exchangeexchange informationinformation acrossacross firewallsfirewalls usingusingstandards like HTTP and X
42、ML messaging.XMLstandards like HTTP and XML messaging.XMLWebWeb servicesservices areare notnot tiedtied toto a a particularparticularcomponentcomponenttechnologytechnologyororobject-callingobject-callingconvention.As a result,programs written in anyconvention.As a result,programs written in anylangu
43、age,language,usingusing anyany componentcomponent model,model,andandrunningrunning onon anyany operatingoperating systemsystem cancan accessaccessXML Web services.XML Web services.ASP.NETASP.NET includesincludes anan extensibleextensible hostinghostingenvironmentenvironment thatthat controlscontrols
44、 thethe lifelife cyclecycle ofof ananapplicationapplication fromfrom whenwhen a a useruser firstfirst accessesaccesses a aresourceresource(such(such asas a a page)page)inin thethe applicationapplication totothe point at which the application is shut down.the point at which the application is shut do
45、wn.While ASP.NET relies on a Web server(IIS)asWhile ASP.NET relies on a Web server(IIS)asan application host,ASP.NET provides much ofan application host,ASP.NET provides much ofthe hosting functionality itself.The architecturethe hosting functionality itself.The architectureofofASP.NETASP.NETenables
46、enablesyouyoutotorespondrespondtotoapplicationapplication eventsevents andand createcreate customcustom HTTPHTTPhandlers and HTTP modules.handlers and HTTP modules.ASP.NETASP.NET includesincludes enhancedenhanced supportsupport forforcreatingcreating designersdesigners forfor WebWeb serverserver con
47、trolscontrols forforuseuse withwith a a visualvisual designdesign tooltool suchsuch asas VisualVisualStudio.Studio.DesignersDesignersenableenableyouyoutotobuildbuilda adesign-time userdesign-time user interface for a control,so thatinterface for a control,so thatdevelopersdeveloperscancanconfigureco
48、nfigureyouryourcontrolscontrolsproperties and content in the visual design tool.properties and content in the visual design tool.IntroductionIntroduction totothetheC#C#LanguageLanguageandandthethe.NET.NET FrameworkFrameworkC#C#is is anan elegantelegant andandtype-safetype-safe object-orientedobject-
49、oriented languagelanguage thatthat enablesenablesdevelopersdevelopers toto buildbuild a a widewide rangerange ofof securesecure andandrobustrobust applicationsapplicationsthatthatrunrunononthethe.NET.NETFramework.Framework.YouYoucancanuseuseC#C#totocreatecreatetraditionaltraditional WindowsWindows c
50、lientclient applications,applications,XMLXMLWebWebservices,services,distributeddistributedcomponents,components,client-server applications,database applications,client-server applications,database applications,andand much,much,muchmuch more.more.MicrosoftMicrosoft VisualVisual C#C#20052005providespr