外文文献翻译- 技术.docx
- 文档编号:10968723
- 上传时间:2023-02-24
- 格式:DOCX
- 页数:15
- 大小:21.48KB
外文文献翻译- 技术.docx
《外文文献翻译- 技术.docx》由会员分享,可在线阅读,更多相关《外文文献翻译- 技术.docx(15页珍藏版)》请在冰豆网上搜索。
外文文献翻译
学生姓名:
论文题目:
火车在线订票系统的设计与实现
指导教师:
技术职称:
教授
原文:
ASP.NETTechnique
ASP.NETandthe.NETFramework
ASP.NETispartofMicrosoft'soverall.NETframework,whichcontainsavastsetofprogrammingclassesdesignedtosatisfyanyconceivableprogrammingneed.Inthefollowingtwosections,youlearnhowASP.NETfitswithinthe.NETframework,andyoulearnaboutthelanguagesyoucanuseinyourASP.NETpages.
The.NETFrameworkClassLibrary
ImaginethatyouareMicrosoft.Imaginethatyouhavetosupportmultipleprogramminglanguages—suchasVisualBasic,JScript,andC++.Agreatdealofthefunctionalityoftheseprogramminglanguagesoverlaps.Forexample,foreachlanguage,youwouldhavetoincludemethodsforaccessingthefilesystem,workingwithdatabases,andmanipulatingstrings.
Furthermore,theselanguagescontainsimilarprogrammingconstructs.Everylanguage,forexample,canrepresentloopsandconditionals.EventhoughthesyntaxofaconditionalwritteninVisualBasicdiffersfromthesyntaxofaconditionalwritteninC++,theprogrammingfunctionisthesame.
Finally,mostprogramminglanguageshavesimilarvariabledatatypes.Inmostlanguages,youhavesomemeansofrepresentingstringsandintegers,forexample.Themaximumandminimumsizeofanintegermightdependonthelanguage,butthebasicdatatypeisthesame.
Maintainingallthisfunctionalityformultiplelanguagesrequiresalotofwork.Whykeepreinventingthewheel?
Wouldn'titbeeasiertocreateallthisfunctionalityonceanduseitforeverylanguage?
The.NETFrameworkClassLibrarydoesexactlythat.Itconsistsofavastsetofclassesdesignedtosatisfyanyconceivableprogrammingneed.Forexample,the.NETframeworkcontainsclassesforhandlingdatabaseaccess,workingwiththefilesystem,manipulatingtext,andgeneratinggraphics.Inaddition,itcontainsmorespecializedclassesforperformingtaskssuchasworkingwithregularexpressionsandhandlingnetworkprotocols.
The.NETframework,furthermore,containsclassesthatrepresentallthebasicvariabledatatypessuchasstrings,integers,bytes,characters,andarrays.
Mostimportantly,forpurposesofthisbook,the.NETFrameworkClassLibrarycontainsclassesforbuildingASP.NETpages.Youneedtounderstand,however,thatyoucanaccessanyofthe.NETframeworkclasseswhenyouarebuildingyourASP.NETpages.
UnderstandingNamespaces
Asyoumightguess,the.NETframeworkishuge.Itcontainsthousandsofclasses(over3,400).Fortunately,theclassesarenotsimplyjumbledtogether.Theclassesofthe.NETframeworkareorganizedintoahierarchyofnamespaces.
StandardASP.NETNamespaces
TheclassescontainedinaselectnumberofnamespacesareavailableinyourASP.NETpagesbydefault.(Youmustexplicitlyimportothernamespaces.)ThesedefaultnamespacescontainclassesthatyouusemostofteninyourASP.NETapplications:
System—Containsallthebasedatatypesandotherusefulclassessuchasthoserelatedtogeneratingrandomnumbersandworkingwithdatesandtimes.
System.Collections—Containsclassesforworkingwithstandardcollectiontypessuchashashtables,andarraylists.
System.Collections.Specialized—Containsclassesthatrepresentspecializedcollectionssuchaslinkedlistsandstringcollections.
System.Configuration—Containsclassesforworkingwithconfigurationfiles(Web.configfiles).
System.Text—Containsclassesforencoding,decoding,andmanipulatingthecontentsofstrings.
System.Text.RegularExpressions—Containsclassesforperformingregularexpressionmatchandreplaceoperations.
System.Web—ContainsthebasicclassesforworkingwiththeWorldWideWeb,includingclassesforrepresentingbrowserrequestsandserverresponses.
System.Web.Caching—Containsclassesusedforcachingthecontentofpagesandclassesforperformingcustomcachingoperations.
System.Web.Security—ContainsclassesforimplementingauthenticationandauthorizationsuchasFormsandPassportauthentication.
System.Web.SessionState—Containsclassesforimplementingsessionstate.
System.Web.UI—ContainsthebasicclassesusedinbuildingtheuserinterfaceofASP.NETpages.
System.Web.UI.HTMLControls—ContainstheclassesfortheHTMLcontrols.
System.Web.UI.WebControls—ContainstheclassesfortheWebcontrols.
.NETFramework-CompatibleLanguages
Forpurposesofthisbook,youwillwritetheapplicationlogicforyourASP.NETpagesusingVisualBasicasyourprogramminglanguage.ItisthedefaultlanguageforASP.NETpages.AlthoughyousticktoVisualBasicinthisbook,youalsoneedtounderstandthatyoucancreateASP.NETpagesbyusinganylanguagethatsupportsthe.NETCommonLanguageRuntime.Outofthebox,thisincludesC#,JScript.NET,andtheManagedExtensionstoC++.
NOTE
TheCDincludedwiththisbookcontainsC#versionsofallthecodesamples.
DozensofotherlanguagescreatedbycompaniesotherthanMicrosofthavebeendevelopedtoworkwiththe.NETframework.SomeexamplesoftheseotherlanguagesincludePython,SmallTalk,Eiffel,andCOBOL.Thismeansthatyoucould,ifyoureallywantedto,writeASP.NETpagesusingCOBOL.
RegardlessofthelanguagethatyouusetodevelopyourASP.NETpages,youneedtounderstandthatASP.NETpagesarecompiledbeforetheyareexecuted.ThismeansthatASP.NETpagescanexecuteveryquickly.
ThefirsttimeyourequestanASP.NETpage,thepageiscompiledintoa.NETclass,andtheresultingclassfileissavedbeneathaspecialdirectoryonyourservernamedTemporaryASP.NETFiles.ForeachandeveryASP.NETpage,acorrespondingclassfileappearsintheTemporaryASP.NETFilesdirectory.WheneveryourequestthesameASP.NETpageinthefuture,thecorrespondingclassfileisexecuted.
WhenanASP.NETpageiscompiled,itisnotcompileddirectlyintomachinecode.Instead,itiscompiledintoanintermediate-levellanguagecalledMicrosoftIntermediateLanguage(MSIL).All.NET-compatiblelanguagesarecompiledintothisintermediatelanguage.
AnASP.NETpageisn'tcompiledintonativemachinecodeuntilitisactuallyrequestedbyabrowser.Atthatpoint,theclassfilecontainedintheTemporaryASP.NETFilesdirectoryiscompiledwiththe.NETframeworkJustinTime(JIT)compilerandexecuted.
Themagicalaspectofthiswholeprocessisthatithappensautomaticallyinthebackground.AllyouhavetodoiscreateatextfilewiththesourcecodeforyourASP.NETpage,andthe.NETframeworkhandlesallthehardworkofconvertingitintocompiledcodeforyou.
ASPCLASSICNOTE
WhataboutVBScript?
BeforeASP.NET,VBScriptwasthemostpopularlanguagefordevelopingActiveServerPages.
ASP.NETdoesnotsupportVBScript,andthisisgoodnews.VisualBasicisasupersetofVBScript,whichmeansthatVisualBasichasallthefunctionalityofVBScriptandmore.So,youhavearichersetoffunctionsandstatementswithVisualBasic.
Furthermore,unlikeVBScript,VisualBasicisacompiledlanguage.ThismeansthatifyouuseVisualBasictorewritethesamecodethatyouwrotewithVBScript,youcangetbetterperformance.
IfyouhaveworkedonlywithVBScriptandnotVisualBasicinthepast,don'tworry.SinceVBScriptissocloselyrelatedtoVisualBasic,you'llfinditeasytomakethetransitionbetweenthetwolanguages.
NOTE
MicrosoftincludesaninterestingtoolnamedtheILDisassembler(ILDASM)withthe.NETframework.YoucanusethistooltoviewthedisassembledcodeforanyoftheASP.NETclassesintheTemporaryASP.NETFilesdirectory.Itlistsallthemethodsandpropertiesoftheclassandenablesyoutoviewtheintermediate-levelcode.
ThistoolalsoworkswithalltheASP.NETcontrolsdiscussedinthischapter.Forexample,youcanusetheILDisassemblertoviewtheintermediate-levelcodefortheTextBoxcontrol(locatedinafilenamedSystem.Web.dll).
McDonald,Zipuzitathe
AdvancedASP.NET3.5Programming(2ndEdition)
外文文献翻译
学生姓名:
论文题目:
火车在线订票系统的设计与实现
指导教师:
技术职称:
教授
译文:
ASP.NET技术
ASP.NET和ASP.NET结构
ASP.NET是微软.NETframework整体的一部分,它包含一组大量的编程用的类,满足各种编程需要。
在下列的二个部分中,你如何学会ASP.NET很适合的放在.NETframework,和学会能在你的ASP.NET页面中使用语言。
.NET类库
假想你是微软。
假想你必须支持大量的编程语言-比如VisualBasic、C#和C++.这些编程语言的很多功能具有重叠性。
举例来说,对于每一种语言,你必须包括存取文件系统、与数据库协同工作和操作字符串的方法。
此外,这些语言包含相似的编程构造。
每种语言,举例来说,都能够使用循环语句和条件语句。
即使用VisualBasic写的条件语句的语法不与用C++写的不一样,程序的功能也是相同的。
最后,大多数的编程语言有相似的数据变量类型。
以大多数的语言,你有设定字符串类型和整型数据类型的方法。
举例来说,整型数据最大值和最小值可能依赖语言的种类,但是基本的数据类型是相同的。
对于多种语言来说维持这一功能需要很大的工作量。
为什么继续再创轮子?
对所有的语言创建这种功能一次,然后把这个功能用在每一种语言中岂不是更容易。
.NET类库不完全是那样。
它含有大量的满足编程需要的类。
举例来说,.NET类库包含处理数据库访问的类和文件协同工作,操作文本和生成图像。
除此之外,它包含更多特殊的类用在正则表达式和处理Web协议。
.NETframework,此外包含支持所有的基本变量数据类型的类,比如:
字符串、整型、字节型、字符型和数组。
最重要地,写这一本书的目的,.NET类库包含构建的ASP.NET页面的类。
然而你需要了解当你构建.NET页面的时候能够访问.NETframework的任意类。
理解命名空间
正如你猜测的,.NETframework是庞大的。
它包含数以千计的类(超过3,400)。
幸运地,类不是简单的堆在一起。
.NETframework的类被组织成有层次结构的命名空间。
.NETFramework-可用的语言
这一本书的目的,你将会为以VisualBasic作为你的编程语言来完成你的ASP.NET页写程序编写。
它是ASP.NET页面的默认语言。
虽然你在这一本书中一直用VisualBasic,但是,你也需要了解用其它的支持公共语言库的语言创建ASP.NET页面。
除此之外,这包括C#,JScript.NET和C++。
提示
本书所含的光碟包含C#源代码。
除微软之外的公司产生的几十个其他的语言已经能够和.NETframework兼容。
这些其他的语言的一些例子包括Python、SmallTalk、Eiffel和COBOL。
这就意味着假如你真的想,你可以使用COBOL写ASP.NET页面。
不管你使用什么语言开发ASP.NET页面,你需要明白ASP.NET在执行前必须编译,这就意味着ASP.NET执行速度非常快。
你第一次请求ASP.NET页面,页面被编译成一个.NET类,这个类文件被保存在一个特殊的目录下这个目录的名字叫TemporaryASP.NETFiles。
对于一个ASP.NET页面一个通信类文件出现在TemporaryASP.NETFiles目录下。
以后不管任何时候你请求那个同样的ASP.NET页面,那个通信类文件就会执行。
当ASP.NET页面被编译的时候,它没被直接地被编译成机器码而是被编译成了一个中间语言,名字叫(MSIL)所有.NET可用的语言都被编译成这种中间语言。
一个ASP.NET页面不会被编译成本地机器码直到它被一个浏览器访问,在那个时间点包含在TemporaryASP.NETFiles目录下的类文件用JIT编译器编译并且执行。
这些迷惑的方面体现在整个过程都在后台运行,你必须要做的是用资源代码为你的ASP.NET页面创建一个文本文件。
.NETframework为你处理完转换它为编译码这一困难工作。
典型ASP提示
VBScript怎么样呢?
在ASP.NET之前,VBScript是开发
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 外文文献翻译- 技术 外文 文献 翻译