物业管理系统外文翻译演示教学.doc
《物业管理系统外文翻译演示教学.doc》由会员分享,可在线阅读,更多相关《物业管理系统外文翻译演示教学.doc(15页珍藏版)》请在咨信网上搜索。
物业管理系统外文翻译 精品文档 外 文 翻 译 毕业设计题目: 基于ASP.NET的 物业管理系统开发 原文1: ASP.NET 2.0 Web Pages and Web Controls 译文1: ASP.NET 2.0 网页和Web控件 原文2:The Role of Global.asax File 译文2: Global.asax文件的作用 原文1 ASP.NET 2.0 Web Pages and Web Controls Until now, all of the example applications in this text have focused on console-based and Windows Forms front ends. In this chapter and the next, you’ll explore how the .NET platform facilitates the construction of browser-based presentation layers. To begin, you’ll quickly review a number of key web-centric concepts (HTTP, HTML, client-side, and server-side script) and the role of the web server (including the ASP.NET development server, WebDev.WebServer.exe). With this web primer out of the way, the remainder of this chapter concentrates on the composition of ASP.NET (including the enhanced code-behind model) and how to work with ASP.NET web controls. As you will see, ASP.NET 2.0 provides a number of new web controls, a new “master page”model, and various customization techniques. The Role of HTTP Web applications are very different animals from traditional desktop applications (to say the least).The first obvious difference is that a production-level web application will always involve at least two networked machines (of course, during development it is entirely possible to have a single machine play the role of both client and server). Given this fact, the machines in question must agree upon a particular wire protocol to determine how to send and receive data. The wire protocol that connects the computers in question is the Hypertext Transfer Protocol (HTTP). When a client machine launches a web browser (such as Netscape Navigator, Mozilla Firefox,or Microsoft Internet Explorer), an HTTP request is made to access a particular resource (such as an *.aspx or *.htm file) on the remote server machine. HTTP is a text-based protocol that is built upon a standard request/response paradigm. For example, if you navigate to www. IntertechT, the browser software leverages a web technology termed Domain Name Service (DNS) that converts the registered URL into a four-part, 32-bit numerical value (aka an IP address). At this point, the browser opens a socket connection (typically via port 80) and sends the HTTP request for the default page at the http://www.IntertechT website. Once the hosting web server receives the incoming HTTP request, the specified resource may contain logic that scrapes out any client-supplied input values (such as values within a text box) in order to format a proper HTTP response. Web programmers may leverage any number of technologies (CGI, ASP, ASP.NET, Java servlets, etc.) to dynamically generate the content to be emitted into the HTTP response. At this point, the client-side browser renders the HTML emitted from the web server. Another aspect of web development that is markedly different from traditional desktop programming is the fact that HTTP is an essentially stateless wire protocol. As soon as the web server emits a response to the client, everything about the previous interaction is forgotten. Therefore, as a web developer, it is up to you take specific steps to “remember” information (such as items in a shopping cart) about the clients who are currently logged on to your site. As you will see in the next chapter, ASP.NET provides numerous ways to handle state, many of which are commonplace to any web platform (session variables, cookies, and application variables) as well as some new techniques (view state, control state, and the cache). Understanding Web Applications and Web Servers A web application can be understood as a collection of files (*.htm, *.asp, *.aspx, image files, etc.) and related components (such as a .NET code library) stored within a particular set of directories on a given web server. As shown in Chapter 24, web applications have a specific life cycle and provide numerous events (such as initial startup or final shutdown) that you can hook into. A web server is a software product in charge of hosting your web applications, and it typically provides a number of related services such as integrated security, File Transfer Protocol (FTP) support, mail exchange services, and so forth. Internet Information Server (IIS) is Microsoft’s enterprise-level web server product, and as you would guess, it has intrinsic support for classic ASP as well as ASP.NET web applications. When you build ASP.NET web applications, you will often need to interact with IIS. Be aware, however, that IIS is not automatically selected when you install the Windows Server 2003 or Windows XP Professional Edition (you can’t install IIS on the Home editions of Windows). Therefore, depending on the configuration of your development machine, you may be required to manually install IIS before proceeding through this chapter. To do so, simply access the Add/Remove Program applet from the Control Panel folder and select Add/Remove Windows Components. Working with IIS Virtual Directories A single IIS installation is able to host numerous web applications, each of which resides in a virtual directory. Each virtual directory is mapped to a physical directory on the local hard drive. Therefore, if you create a new virtual directory named CarsRUs, the outside world can navigate to this site using a URL such as http://www.CarsRU (assuming your site’s IP address has been registered with the world at large). Under the hood, the virtual directory maps to a physical root directory such as C:\inetpub\wwwroot\AspNetCarsSite, which contains the content of the web application. When you create ASP.NET web applications using Visual Studio 2005, you have the option of generating a new virtual directory for the current website. However, you are also able to manually create a virtual directory by hand. For the sake of illustration, assume you wish to create a simple web application named Cars. The first step is to create a new folder on your machine to hold the collection of files that constitute this new site (e.g., C:\CodeTests\CarsWebSite). Next, you need to create a new virtual directory to host the Cars site. Simply right-click the Default Web Site node of IIS and select New ➤Virtual Directory from the context menu. This menu selection launches an integrated wizard. Skip past the welcome screen and give your website a name (Cars). Next, you are asked to specify the physical folder on your hard drive that contains the various files and images that represent this site (in this case, C:\CodeTests\CarsWebSite). The final step of the wizard prompts you for some basic traits about your new virtual directory (such as read/write access to the files it contains, the ability to view these files from a web browser, the ability to launch executables [e.g., CGI applications], etc.). For this example, the default selections are just fine (be aware that you can always modify your selections after running this tool using various right-click Property dialog boxes integrated within IIS). 译文1 作者:迪诺·弗雷 国籍:美国 出处:ASP.NET 2.0 and Data-Bound Controls ASP.NET 2.0网页和Web控件 到现在为止,本书的示例应用程序主要集中在控制台和基于Windows窗体前端。在本章及下面学习中,将探讨如何用.NET平台促进浏览器的建设。首先,你很快就会再次看到关于网络中心的概念(HTTP,HTML格式,客户端和服务器端脚本)和web服务器(包括ASP.NET开发服务器,WebDev.WebServer作用。exe文件)。 了这一点,本章的剩余部分主要是ASP网络(包括增强的代码隐藏模型),以及如何使用ASP.NET Web控件和ASP.NET组成。正如你所看到的,ASP.NET 2.0提供了一些新的网络控制模式,新的“母版页”的模式,以及各种定制技术。 HTTP的作用 Web应用程序不同于传统的桌面应用程序。第一个明显不同的是,产生Web应用程序将至少涉及两台联网的机器(当然在开发过程中完全有可能有一台机器扮演客户端和服务器角色)。鉴于这一事实,机器必须确定一个特定的有线协议,以确定如何发送和接收数据。线路协议,关系到计算机的问题是超文本传递协议(HTTP)。 当客户机启动一个(如Netscape Navigator,Mozilla Firefox浏览器,或Microsoft Internet Explorer)浏览器,一个HTTP请求访问(如*. aspx或*. htm文件)在远程服务器上的特定资源。 HTTP是一个基于文本的协议,是建立在一个标准的请求/响应式。例如,如果导航到http://www.IntertechT,浏览器软件利用网络技术网域名称服务(DNS)转换成由四个部分组成,32位数值(又名IP地址)注册的网址。此时,浏览器打开一个(通常是通过端口80)套接字连接和发送的默认HTTP网页上http://www.IntertechT要求。 一旦托管的Web服务器接收 发送来的HTTP请求,指定的资源可能包含逻辑输入值(例如在一个文本框的值),以便以适当的格式回复HTTP响应。 Web程序员可以利用任何技术(共同闸道介面,的ASP,ASP.NET,Java Servlets和等)来动态生成纳入HTTP响应的内容。此时,客户端的HTML浏览器从Web服务器发出的请求。 网络的另一个显着的发展是从传统的桌面程序变成HTTP的无国界有线协议。只要服务器发出响应客户,所有关于以前的交互作用被遗忘了。因此,作为Web开发人员,它是由你采取具体步骤,以“记住”信息(如在购物车中的物品)有关目前谁登录到您的站点。你会在下一章看到,ASP.NET提供了许多方法来处理状态,其中许多是很常见网络平台(会话变量,Cookie和应用程序变量)以及一些新技术(视图状态,控制状态,和缓存)。 了解Web应用程序和Web服务器 一个web应用程序可以被理解为一个档案集合(*.热媒,*. asp和*.的ASPX,图像文件等)和(如相关的组件。NET代码库)在一组特定的目录中存储给定的Web服务器。如第24章所示,Web应用程序有一个特定的生命周期,并提供了许多活动(如初始启动或最后关闭),可以连接到。 Web服务器是 接管网络应用的软件产品,而且通常提供集成安全等一系列相关服务的数量,文件传输协议(FTP)的支持,邮件交换服务,等等。互联网信息服务(IIS)是微软的企业级Web服务器的产品,它内在的支持传统的ASP以及ASP.NET Web应用程序。 当你建立ASP.NET Web应用程序,你会经常需要与IIS进行交互。请注意,IIS是不会自动选择安装Windows Server 2003或Windows XP专业版(无法安装在Windows家用版IIS)的。因此,在你的开发机器配置不同时,您可能需要手动安装本章所说的IIS程序。为此,只需访问添加/从控制面板文件夹删除程序小程序并选择添加/删除Windows组件。 工作与IIS虚拟目录 在每一个虚拟目录里单一的IIS有能力办好许多Web应用程序。每一个虚拟目录映射到本地硬盘驱动器的物理目录。因此,如果您创建一个新的虚拟目录名为CarsRUs,外界可以浏览到这个网站使用的网址,如http://www.CarsRU(假设您的网站的IP地址已经与整个世界的登记)。在内部,该虚拟目录映射到一个物理根目录,如C:\ inetpub \ wwwroot的\ AspNetCarsSite,其中包含Web应用程序的内容。 当您创建ASP.NET Web应用程序使用Visual Studio 2005,您可以产生一个新的当前网站的虚拟目录选项。不过,你也可以手动创建一个虚拟目录。为了说明起见,假设你想创建一个简单的Web应用程序命名为汽车。第一步是创建一个你新文件夹以保存文件,构成新的网站(例如,C:\ CodeTests \ CarsWebSite)集合。 下面,需要创建一个新的虚拟目录举办汽车的网站。只需右键单击默认Web站点的IIS节点,然后从上下文菜单中选择New➤虚拟目录。此菜单选择启动一个综合向导。跳过过去的欢迎屏幕,是你的网站的名称(汽车)。接下来,您被要求指定您的硬盘驱动器包含各种文件和图像的物理文件夹代表本网站(在此情况下,C:\ CodeTests \ CarsWebSite)。 在向导的最后一步会提示你新的虚拟目录(如读/写访问的文件它包含了一些基本特征你,能够从一个网页浏览器这些文件,能够发射可执行文件[例如,共同闸道介面应用]等)。在这个例子中,只是默认选择(注意,您可以随时修改运行此工具后,使用不同的用鼠标右键单击属性对话框在IIS集成箱您的选择)。 原文2 The Role of the Global.asax File At this point, an ASP.NET application may seem to be little more than a set of *.aspx files and their respective web controls. While you could build a web application by simply linking a set of related web pages, you will most likely need a way to interact with the web application as a whole. To this end, your ASP.NET web applications may choose to include an optional Global.asax file via the WebSite. Add New Item menu option. Simply put, Global.asax is just about as close to a traditional double-clickable *.exe that we can get in the world of ASP.NET, meaning this type represents the runtime behavior of the website itself. Once you insert a Global.asax file into a web project, you will notice it is little more than a <script> block containing a set of event handlers: <%@ Application Language="C#" %> <script runat="server"> void Application_Start(Object sender, EventArgs e) { // Code that runs on application startup } void Application_End(Object sender, EventArgs e) { // Code that runs on application shutdown } void Application_Error(Object sender, EventArgs e) { // Code that runs when an unhandled error occurs } void Session_Start(Object sender, EventArgs e) { // Code that runs when a new session is started } void Session_End(Object sender, EventArgs e) { // Code that runs when a session ends } </script> Looks can be deceiving, however. At runtime, the code within this <script> block is assembled into a class type deriving from System.Web.HttpApplication. If you have a background in ASP.NET 1.x, you may recall that the Global.asax code-behind file literally did define a class deriving from HttpApplication. The Global Last Chance Exception Event Handler First, let me point out the role of the Application_Error() event handler. Recall that a specific page may handle the Error event to process any unhandled exception that occurred within the scope of the page itself. In a similar light, the Application_Error() event handler is the final place to handle an exception that was not handled by a specific page. As with the page-level Error event, you are able to access the specific System.Exception using the inherited Server property: void Application_Error(Object sender, EventArgs e) { Exception ex = Server.GetLastError(); Response.Write(ex.Message); Server.ClearError(); } Given that the Application_Error() event handler is the last chance exception handler for your web application, odds are that you would rather not report the error to the user, but you would like to log this information to the web server’s event log, for example: <%@ Import Namespace = "System.Diagnostics"%> ... void Application_Error(Object sender, EventArgs e) { // Log last error to event log. Exception ex = Server.GetLastError(); EventLog ev = new EventLog("Application"); ev.WriteEntry(ex.Message, EventLogEntryType.Error); Server.ClearError(); Response.Write("This app has bombed. Sorry!"); } The HttpApplication Base Class As mentioned, the Global.asax script is dynamically generated into a class deriving from the System.Web.HttpApplication base class, which supplies the same sort of functionality as the System.Web.UI.Page type. Application This property allows you to interact with application-level variables, using the exposed HttpApplicationState type. Request This property allows you to interact with the incoming HTTP request (via HttpRequest). Response This property allows you to interact with the incoming HTTP response (via HttpResponse). Server This property gets the intrinsic server object for the current request (via HttpServerUtility). Session This property allows you to interact with session-level variables, using the exposed HttpSessionState type. 译文2 作者:P.S.Yu, H.Heiss, and D.M.Dias 国籍:德国 出处:ASP.NET 2.0 Web Pages and Web Controls Global.asax文件的作用 ASP.NET应用程序看起来是一个*. aspx文件中各自的网络控制设置。虽然可以通过建立起来的相关网页设置一个Web应用程序,你很可能需要一种整个互动的Web应用程序。为此,ASP.NET Web应用程序可以通过选择一个可选的Global.asax网站➤添加新项菜单选项文件。 简单地说,Global.asax是一种类似于传统的double-clickable *.exe文件,在ASP.NET世界,这意味着这种类型的网站代表了本身运行时的行为。一旦你插入的一个Global.asax文件转换成一个网页专题研究,你会发现它是<脚本>包含一组事件处理器: <%@ Application Language="C#" %> <script runat="server"> void Application_Start(Object sender, EventArgs e) { // Code that runs on application startup } void Application_End(Object sender, EventArgs e) { // Code that runs on application shutdown } void Application_Error(Object sender, EventArgs e) { // Code that runs when an unhandled error occurs } void Session_Start(Object sender, EventArgs e) { // Code that runs when a new session is started } void Session_End(Object sender, EventArgs e) { // Code that runs when a session ends } </script> 但是,在运行时,在此的<SCRIPT>块生成一个类派生类型的System.Web.HttpApplication组装代码。如果在ASP.NET 1.x的背景下,你可能会记得,Global.asax代码隐藏文件字面上没有定义一个类HttpApplication的义务。 Global最后机会异常事件处理 首先,请允许我指出, Application_Error()事件处理程序的作用点。回想一下,一个特定的页面能处理网页本身范围内发生的错误事件。在类似的情况,Application_Error()处理器是最后的地方,不是处理异常事件的一个特定页面。如同页面级错误事件,您可以访问特定的System.Exception以继承服务器的属性: void Application_Error(Object sender, EventArgs e) { Exception ex = Server.GetLastError(); Response.Write(ex.Message); Server.ClearError(); } 鉴于Appli- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 物业管理 系统 外文 翻译 演示 教学
咨信网温馨提示:
1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前自行私信或留言给上传者【快乐****生活】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时私信或留言给本站上传会员【快乐****生活】,需本站解决可联系【 微信客服】、【 QQ客服】,若有其他问题请点击或扫码反馈【 服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【 版权申诉】”(推荐),意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:4008-655-100;投诉/维权电话:4009-655-100。
1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前自行私信或留言给上传者【快乐****生活】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时私信或留言给本站上传会员【快乐****生活】,需本站解决可联系【 微信客服】、【 QQ客服】,若有其他问题请点击或扫码反馈【 服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【 版权申诉】”(推荐),意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:4008-655-100;投诉/维权电话:4009-655-100。
关于本文