毕业设计说明书英文文献及中文翻译学生姓名:学号:学院:专业:指导教师:2011年6月魏生栋0706054151电子与计算机科学技术软件工程武瑞娟ASP.NETOverviewASP.NETisaunifiedWebdevelopmentmodelthatincludestheservicesnecessaryforyoutobuildenterprise-classWebapplicationswithaminimumofcoding.ASP.NETispartofthe.NETFramework,andwhencodingASP.NETapplicationsyouhaveaccesstoclassesinthe.NETFramework.Youcancodeyourapplicationsinanylanguagecompatiblewiththecommonlanguageruntime(CLR),includingMicrosoftVisualBasicandC#.TheselanguagesenableyoutodevelopASP.NETapplicationsthatbenefitfromthecommonlanguageruntime,typesafety,inheritance,andsoon.IfyouwanttotryASP.NET,youcaninstallVisualWebDeveloperExpressusingtheMicrosoftWebPlatformInstaller,whichisafreetoolthatmakesitsimpletodownload,install,andservicecomponentsoftheMicrosoftWebPlatform.ThesecomponentsincludeVisualWebDeveloperExpress,InternetInformationServices(IIS),SQLServerExpress,andthe.NETFramework.AllofthesearetoolsthatyouusetocreateASP.NETWebapplications.YoucanalsousetheMicrosoftWebPlatformInstallertoinstallopen-sourceASP.NETandPHPWebapplications.VisualWebDeveloperVisualWebDeveloperisafull-featureddevelopmentenvironmentforcreatingASP.NETWebapplications.VisualWebDeveloperprovidesanidealenvironmentinwhichtobuildWebsitesandthenpublishthemtoahostingsite.UsingthedevelopmenttoolsinVisualWebDeveloper,youcandevelopASP.NETWebpagesonyourowncomputer.VisualWebDeveloperincludesalocalWebserverthatprovidesallthefeaturesyouneedtotestanddebugASP.NETWebpages,withoutrequiringInternetInformationServices(IIS)tobeinstalled.VisualWebDeveloperprovidesanidealenvironmentinwhichtobuildWebsitesandthenpublishthemtoahostingsite.UsingthedevelopmenttoolsinVisualWebDeveloper,youcandevelopASP.NETWebpagesonyourowncomputer.VisualWebDeveloperincludesalocalWebserverthatprovidesallthefeaturesyouneedtotestanddebugASP.NETWebpages,withoutrequiringInternetInformationServices(IIS)tobeinstalled.Whenyoursiteisready,youcanpublishittothehostcomputerusingthebuilt-inCopyWebtool,whichtransfersyourfileswhenyouarereadytosharethemwithothers.Alternatively,youcanprecompileanddeployaWebsitebyusingtheBuildWebSitecommand.TheBuildWebSitecommandrunsthecompilerovertheentireWebsite(notjustthecodefiles)andproducesaWebsitelayoutthatyoucandeploytoaproductionserver.Finally,youcantakeadvantageofthebuilt-insupportforFileTransferProtocol(FTP).UsingtheFTPcapabilitiesofVisualWebDeveloper,youcanconnectdirectlytothehostcomputerandthencreateandeditfilesontheserver.ASP.NETWebSitesandASP.NETWebApplicationProjectsUsingVisualStudiotools,youcancreatedifferenttypesofASP.NETprojects,whichincludesWebsites,Webapplications,Webservices,andAJAXservercontrols.ThereisadifferencebetweenWebsiteprojectsandWebapplicationprojects.SomefeaturesworkonlywithWebapplicationprojects,suchasMVCandcertaintoolsforautomatingWebdeployment.Otherfeatures,suchasDynamicData,workwithbothWebsitesandWebapplicationprojects.PageandControlsFrameworkTheASP.NETpageandcontrolsframeworkisaprogrammingframeworkthatrunsonaWebservertodynamicallyproduceandrenderASP.NETWebpages.ASP.NETWebpagescanberequestedfromanybrowserorclientdevice,andASP.NETrendersmarkup(suchasHTML)totherequestingbrowser.Asarule,youcanusethesamepageformultiplebrowsers,becauseASP.NETrenderstheappropriatemarkupforthebrowsermakingtherequest.However,youcandesignyourASP.NETWebpagetotargetaspecificbrowserandtakeadvantageofthefeaturesofthatbrowser.ASP.NETWebpagesarecompletelyobject-oriented.WithinASP.NETWebpagesyoucanworkwithHTMLelementsusingproperties,methods,andevents.TheASP.NETpageframeworkremovestheimplementationdetailsoftheseparationofclientandserverinherentinWeb-basedapplicationsbypresentingaunifiedmodelforrespondingtoclienteventsincodethatrunsattheserver.Theframeworkalsoautomaticallymaintainsthestateofapageandthecontrolsonthatpageduringthepageprocessinglifecycle.TheASP.NETpageandcontrolsframeworkalsoenablesyoutoencapsulatecommonUIfunctionalityineasy-to-use,reusablecontrols.Controlsarewrittenonce,canbeusedinmanypages,andareintegratedintotheASP.NETWebpagethattheyareplacedinduringrendering.TheASP.NETpageandcontrolsframeworkalsoprovidesfeaturestocontroltheoveralllookandfeelofyourWebsiteviathemesandskins.Youcandefinethemesandskinsandthenapplythematapageleveloratacontrollevel.Inadditiontothemes,youcandefinemasterpagesthatyouusetocreateaconsistentlayoutforthepagesinyourapplication.Asinglemasterpagedefinesthelayoutandstandardbehaviorthatyouwantforallthepages(oragroupofpages)inyourapplication.Youcanthencreateindividualcontentpagesthatcontainthepage-specificcontentyouwanttodisplay.Whenusersrequestthecontentpages,theymergewiththemasterpagetoproduceoutputthatcombinesthelayoutofthemasterpagewiththecontentfromthecontentpage.TheASP.NETpageframeworkalsoenablesyoutodefinethepatternforURLsthatwillbeusedinyoursite.Thishelpswithsearchengineoptimization(SEO)andmakesURLsmoreuser-friendly.TheASP.NETpageandcontrolframeworkisdesignedtogenerateHTMLthatconformstoaccessibilityguidelines.ASP.NETCompilerAllASP.NETcodeiscompiled,whichenablesstrongtyping,performanceoptimizations,andearlybinding,amongotherbenefits.Oncetheco