物业管理系统论文中英文对照资料外文翻译文献.docx

上传人:b****6 文档编号:16079208 上传时间:2023-07-10 格式:DOCX 页数:12 大小:22.64KB
下载 相关 举报
物业管理系统论文中英文对照资料外文翻译文献.docx_第1页
第1页 / 共12页
物业管理系统论文中英文对照资料外文翻译文献.docx_第2页
第2页 / 共12页
物业管理系统论文中英文对照资料外文翻译文献.docx_第3页
第3页 / 共12页
物业管理系统论文中英文对照资料外文翻译文献.docx_第4页
第4页 / 共12页
物业管理系统论文中英文对照资料外文翻译文献.docx_第5页
第5页 / 共12页
物业管理系统论文中英文对照资料外文翻译文献.docx_第6页
第6页 / 共12页
物业管理系统论文中英文对照资料外文翻译文献.docx_第7页
第7页 / 共12页
物业管理系统论文中英文对照资料外文翻译文献.docx_第8页
第8页 / 共12页
物业管理系统论文中英文对照资料外文翻译文献.docx_第9页
第9页 / 共12页
物业管理系统论文中英文对照资料外文翻译文献.docx_第10页
第10页 / 共12页
物业管理系统论文中英文对照资料外文翻译文献.docx_第11页
第11页 / 共12页
物业管理系统论文中英文对照资料外文翻译文献.docx_第12页
第12页 / 共12页
亲,该文档总共12页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

物业管理系统论文中英文对照资料外文翻译文献.docx

《物业管理系统论文中英文对照资料外文翻译文献.docx》由会员分享,可在线阅读,更多相关《物业管理系统论文中英文对照资料外文翻译文献.docx(12页珍藏版)》请在冰点文库上搜索。

物业管理系统论文中英文对照资料外文翻译文献.docx

物业管理系统论文中英文对照资料外文翻译文献

外文翻译

 

原文1

ASP.NET2.0WebPagesandWebControls

Untilnow,alloftheexampleapplicationsinthistexthavefocusedonconsole-basedandWindowsFormsfrontends.Inthischapterandthenext,you’llexplorehowthe.NETplatformfacilitatestheconstructionofbrowser-basedpresentationlayers.Tobegin,you’llquicklyreviewanumberofkeyweb-centricconcepts(HTTP,HTML,client-side,andserver-sidescript)andtheroleofthewebserver(includingtheASP.NETdevelopmentserver,WebDev.WebServer.exe).

Withthiswebprimeroutoftheway,theremainderofthischapterconcentratesonthecompositionofASP.NET(includingtheenhancedcode-behindmodel)andhowtoworkwithASP.NETwebcontrols.Asyouwillsee,ASP.NET2.0providesanumberofnewwebcontrols,anew“masterpage”model,andvariouscustomizationtechniques.

TheRoleofHTTP

Webapplicationsareverydifferentanimalsfromtraditionaldesktopapplications(tosaytheleast).Thefirstobviousdifferenceisthataproduction-levelwebapplicationwillalwaysinvolveatleasttwonetworkedmachines(ofcourse,duringdevelopmentitisentirelypossibletohaveasinglemachineplaytheroleofbothclientandserver).Giventhisfact,themachinesinquestionmustagreeuponaparticularwireprotocoltodeterminehowtosendandreceivedata.ThewireprotocolthatconnectsthecomputersinquestionistheHypertextTransferProtocol(HTTP).

Whenaclientmachinelaunchesawebbrowser(suchasNetscapeNavigator,MozillaFirefox,orMicrosoftInternetExplorer),anHTTPrequestismadetoaccessaparticularresource(suchasan*.aspxor*.htmfile)ontheremoteservermachine.HTTPisatext-basedprotocolthatisbuiltuponastandardrequest/responseparadigm.Forexample,ifyounavigatetowww.IntertechT,thebrowsersoftwareleveragesawebtechnologytermedDomainNameService(DNS)thatconvertstheregisteredURLintoafour-part,32-bitnumericalvalue(akaanIPaddress).Atthispoint,thebrowseropensasocketconnection(typicallyviaport80)andsendstheHTTPrequestforthedefaultpageatthehttp:

//www.IntertechTwebsite.

OncethehostingwebserverreceivestheincomingHTTPrequest,thespecifiedresourcemaycontainlogicthatscrapesoutanyclient-suppliedinputvalues(suchasvalueswithinatextbox)inordertoformataproperHTTPresponse.Webprogrammersmayleverageanynumberoftechnologies

(CGI,ASP,ASP.NET,Javaservlets,etc.)todynamicallygeneratethecontenttobeemittedintotheHTTPresponse.Atthispoint,theclient-sidebrowserrenderstheHTMLemittedfromthewebserver.

AnotheraspectofwebdevelopmentthatismarkedlydifferentfromtraditionaldesktopprogrammingisthefactthatHTTPisanessentiallystatelesswireprotocol.Assoonasthewebserveremitsaresponsetotheclient,everythingaboutthepreviousinteractionisforgotten.Therefore,asawebdeveloper,itisuptoyoutakespecificstepsto“remember”information(suchasitemsinashoppingcart)abouttheclientswhoarecurrentlyloggedontoyoursite.Asyouwillseeinthenextchapter,ASP.NETprovidesnumerouswaystohandlestate,manyofwhicharecommonplacetoanywebplatform(sessionvariables,cookies,andapplicationvariables)aswellassomenewtechniques(viewstate,controlstate,andthecache).

UnderstandingWebApplicationsandWebServers

Awebapplicationcanbeunderstoodasacollectionoffiles(*.htm,*.asp,*.aspx,imagefiles,etc.)andrelatedcomponents(suchasa.NETcodelibrary)storedwithinaparticularsetofdirectoriesonagivenwebserver.AsshowninChapter24,webapplicationshaveaspecificlifecycleandprovidenumerousevents(suchasinitialstartuporfinalshutdown)thatyoucanhookinto.

Awebserverisasoftwareproductinchargeofhostingyourwebapplications,andittypicallyprovidesanumberofrelatedservicessuchasintegratedsecurity,FileTransferProtocol(FTP)support,mailexchangeservices,andsoforth.InternetInformationServer(IIS)isMicrosoft’senterprise-levelwebserverproduct,andasyouwouldguess,ithasintrinsicsupportforclassicASPaswellasASP.NETwebapplications.

WhenyoubuildASP.NETwebapplications,youwilloftenneedtointeractwithIIS.Beaware,however,thatIISisnotautomaticallyselectedwhenyouinstalltheWindowsServer2003orWindowsXPProfessionalEdition(youcan’tinstallIISontheHomeeditionsofWindows).Therefore,dependingontheconfigurationofyourdevelopmentmachine,youmayberequiredtomanuallyinstallIISbeforeproceedingthroughthischapter.Todoso,simplyaccesstheAdd/RemoveProgramappletfromtheControlPanelfolderandselectAdd/RemoveWindowsComponents.

WorkingwithIISVirtualDirectories

AsingleIISinstallationisabletohostnumerouswebapplications,eachofwhichresidesinavirtualdirectory.Eachvirtualdirectoryismappedtoaphysicaldirectoryonthelocalharddrive.Therefore,ifyoucreateanewvirtualdirectorynamedCarsRUs,theoutsideworldcannavigatetothissiteusingaURLsuchashttp:

//www.CarsRU(assumingyoursite’sIPaddresshasbeenregisteredwiththeworldatlarge).Underthehood,thevirtualdirectorymapstoaphysicalrootdirectorysuchasC:

\inetpub\wwwroot\AspNetCarsSite,whichcontainsthecontentofthewebapplication.

WhenyoucreateASP.NETwebapplicationsusingVisualStudio2005,youhavetheoptionofgeneratinganewvirtualdirectoryforthecurrentwebsite.However,youarealsoabletomanuallycreateavirtualdirectorybyhand.Forthesakeofillustration,assumeyouwishtocreateasimplewebapplicationnamedCars.Thefirststepistocreateanewfolderonyourmachinetoholdthecollectionoffilesthatconstitutethisnewsite(e.g.,C:

\CodeTests\CarsWebSite).

Next,youneedtocreateanewvirtualdirectorytohosttheCarssite.Simplyright-clicktheDefaultWebSitenodeofIISandselectNew➤VirtualDirectoryfromthecontextmenu.Thismenuselectionlaunchesanintegratedwizard.Skippastthewelcomescreenandgiveyourwebsiteaname(Cars).Next,youareaskedtospecifythephysicalfolderonyourharddrivethatcontainsthevariousfilesandimagesthatrepresentthissite(inthiscase,C:

\CodeTests\CarsWebSite).

Thefinalstepofthewizardpromptsyouforsomebasictraitsaboutyournewvirtualdirectory(suchasread/writeaccesstothefilesitcontains,theabilitytoviewthesefilesfromawebbrowser,theabilitytolaunchexecutables[e.g.,CGIapplications],etc.).Forthisexample,thedefaultselectionsarejustfine(beawarethatyoucanalwaysmodifyyourselectionsafterrunningthistoolusingvariousright-clickPropertydialogboxesintegratedwithinIIS).

 

ASP.NET2.0网页和Web控件

到现在为止,本书的示例应用程序主要集中在控制台和基于Windows窗体前端。

在本章及下面学习中,将探讨如何用.NET平台促进浏览器的建设。

首先,你很快就会再次看到关于网络中心的概念(HTTP,HTML格式,客户端和服务器端脚本)和web服务器(包括ASP.NET开发服务器,WebDev.WebServer作用。

exe文件)。

了这一点,本章的剩余部分主要是ASP网络(包括增强的代码隐藏模型),以及如何使用ASP.NETWeb控件和ASP.NET组成。

正如你所看到的,ASP.NET2.0提供了一些新的网络控制模式,新的“母版页”的模式,以及各种定制技术。

HTTP的作用

Web应用程序不同于传统的桌面应用程序。

第一个明显不同的是,产生Web应用程序将至少涉及两台联网的机器(当然在开发过程中完全有可能有一台机器扮演客户端和服务器角色)。

鉴于这一事实,机器必须确定一个特定的有线协议,以确定如何发送和接收数据。

线路协议,关系到计算机的问题是超文本传递协议(HTTP)。

当客户机启动一个(如NetscapeNavigator,MozillaFirefox浏览器,或MicrosoftInternetExplorer)浏览器,一个HTTP请求访问(如*.aspx或*.htm文件)在远程服务器上的特定资源。

HTTP是一个基于文本的协议,是建立在一个标准的请求/响应式。

例如,如果导航到http:

//www.IntertechT,浏览器软件利用网络技术网域名称服务(DNS)转换成由四个部分组成,32位数值(又名IP地址)注册的网址。

此时,浏览器打开一个(通常是通过端口80)套接字连接和发送的默认HTTP网页上http:

//www.IntertechT要求。

一旦托管的Web服务器接收发送来的HTTP请求,指定的资源可能包含逻辑输入值(例如在一个文本框的值),以便以适当的格式回复HTTP响应。

Web程序员可以利用任何技术(共同闸道介面,的ASP,ASP.NET,JavaServlets和等)来动态生成纳入HTTP响应的内容。

此时,客户端的HTML浏览器从Web服务器发出的请求。

网络的另一个显着的发展是从传统的桌面程序变成HTTP的无国界有线协议。

只要服务器发出响应客户,所有关于以前的交互作用被遗忘了。

因此,作为Web开发人员,它是由你采取具体步骤,以“记住”信息(如在购物车中的物品)有关目前谁登录到您的站点。

你会在下一章看到,ASP.NET提供了许多方法来处理状态,其中许多是很常见网络平台(会话变量,Cookie和应用程序变量)以及一些新技术(视图状态,控制状态,和缓存)。

了解Web应用程序和Web服务器

一个web应用程序可以被理解为一个档案集合(*.热媒,*.asp和*.的ASPX,图像文件等)和(如相关的组件。

NET代码库)在一组特定的目录中存储给定的Web服务器。

如第24章所示,Web应用程序有一个特定的生命周期,并提供了许多活动(如初始启动或最后关闭),可以连接到。

Web服务器是接管网络应用的软件产品,而且通常提供集成安全等一系列相关服务的数量,文件传输协议(FTP)的支持,邮件交换服务,等等。

互联网信息服务(IIS)是微软的企业级Web服务器的产品,它内在的支持传统的ASP以及ASP.NETWeb应用程序。

当你建立ASP.NETWeb应用程序,你会经常需要与IIS进行交互。

请注意,IIS是不会自动选择安装WindowsServer2003或WindowsXP专业版(无法安装在Windows家用版IIS)的。

因此,在你的开发机器配置不同时,您可能需要手动安装本章所说的IIS程序。

为此,只需访问添加/从控制面板文件夹删除程序小程序并选择添加/删除Windows组件。

工作与IIS虚拟目录

在每一个虚拟目录里单一的IIS有能力办好许多Web应用程序。

每一个虚拟目录映射到本地硬盘驱动器的物理目录。

因此,如果您创建一个新的虚拟目录名为CarsRUs,外界可以浏览到这个网站使用的网址,如http:

//www.CarsRU(假设您的网站的IP地址已经与整个世界的登记)。

在内部,该虚拟目录映射到一个物理根目录,如C:

\inetpub\wwwroot的\AspNetCarsSite,其中包含Web应用程序的内容。

当您创建ASP.NETWeb应用程序使用VisualStudio2005,您可以产生一个新的当前网站的虚拟目录选项。

不过,你也可以手动创建一个虚拟目录。

为了说明起见,假设你想创建一个简单的Web应用程序命名为汽车。

第一步是创建一个你新文件夹以保存文件,构成新的网站(例如,C:

\CodeTests\CarsWebSite)集合。

下面,需要创建一个新的虚拟目录举办汽车的网站。

只需右键单击默认Web站点的IIS节点,然后从上下文菜单中选择New➤虚拟目录。

此菜单选择启动一个综合向导。

跳过过去的欢迎屏幕,是你的网站的名称(汽车)。

接下来,您被要求指定您的硬盘驱动器包含各种文件和图像的物理文件夹代表本网站(在此情况下,C:

\CodeTests\CarsWebSite)。

在向导的最后一步会提示你新的虚拟目录(如读/写访问的文件它包含了一些基本特征你,能够从一个网页浏览器这些文件,能够发射可执行文件[例如,共同闸道介面应用]等)。

在这个例子中,只是默认选择(注意,您可以随时修改运行此工具后,使用不同的用鼠标右键单击属性对话框在IIS集成箱您的选择)。

 

 

原文2

TheRoleoftheGlobal.asaxFile

Atthispoint,anASP.NETapplicationmayseemtobelittlemorethanasetof*.aspxfilesandtheirrespectivewebcontrols.Whileyoucouldbuildawebapplicationbysimplylinkingasetofrelatedwebpages,youwillmostlikelyneedawaytointeractwiththewebapplicationasawhole.Tothisend,yourASP.NETwebapplicationsmaychoosetoincludeanoptionalGlobal.asaxfileviatheWebSite.

AddNewItemmenuoption.

Simplyput,Global.asaxisjustaboutasclosetoatraditionaldouble-clickable*.exethatwecangetintheworldofASP.NET,meaningthistyperepresentstheruntimebehaviorofthewebsiteitself.OnceyouinsertaGlobal.asaxfileintoa

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 自然科学 > 物理

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2