欢迎来到毕设资料网! | 帮助中心 毕设资料交流与分享平台
毕设资料网
全部分类
  • 毕业设计>
  • 毕业论文>
  • 外文翻译>
  • 课程设计>
  • 实习报告>
  • 相关资料>
  • ImageVerifierCode 换一换
    首页 毕设资料网 > 资源分类 > DOC文档下载
    分享到微信 分享到微博 分享到QQ空间

    计算机外文翻译--ASP.NET 页面对象模型

    • 资源ID:137402       资源大小:78.50KB        全文页数:12页
    • 资源格式: DOC        下载积分:100金币
    快捷下载 游客一键下载
    账号登录下载
    三方登录下载: QQ登录
    下载资源需要100金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝   
    验证码:   换一换

     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

    计算机外文翻译--ASP.NET 页面对象模型

    1、中文 4150 字,英文2400单词,12500英文字符        毕业论文 (设计 ) 英文翻译材料   学院 :     计算机科学学院         专业 :     自动化      年 级 :2011   学生姓名 :       学号 :             指导教师姓名 :     职称 : 讲

    2、师      原文摘自 : lvar Jacobson.Object-Oriented Software Engineering.第 1 版 .北京:人民邮电出版社,2005.10 外文资料原文  ASP.NET PAGE OBJECT MODEL Summary: Learn about the eventing model built around ASP.NET Web pages and the various stages that a Web page experiences on its way to HTML. The ASP.NET H

    3、TTP run time governs the pipeline of objects that transform the requested URL into a living instance of a page class first, and into plain HTML text next. Discover the events that characterize the lifecycle of a page and how control and page authors can intervene to alter the standard behavior. (6 p

    4、rinted pages) Introduction: Each request for a Microsoft ASP.NET page that hits Microsoft Internet Information Services (IIS) is handed over to the ASP.NET HTTP pipeline. The HTTP pipeline is a chain of managed objects that sequentially process the request and make the transition from a URL to plain

    5、 HTML text happen. The entry point of the HTTP pipeline is the HttpRuntime class. The ASP.NET infrastructure creates one instance of this class per each AppDomain hosted within the worker process (remember that the worker process maintains one distinct AppDomain per each ASP.NET application currentl

    6、y running). The HttpRuntime class picks up an HttpApplication object from an internal pool and sets it to work on the request. The main task accomplished by the HTTP application manager is finding out the class that will actually handle the request. When the request is for an .aspx resource, the han

    7、dler is a page handler namely, an instance of a class that inherits from Page. The association between types of resources and types of handlers is stored in the configuration file of the application. More exactly, the default set of mappings is defined in thesection of the machine.config file. Howev

    8、er, the application can customize the list of its own HTTP handlers in the local web.config file. The line below illustrates the code that defines the HTTP handler for .aspx resources.An extension can be associated with a handler class, or more in general, with a handler factory class. In all cases,

    9、 the HttpApplication object in charge for the request gets an object that implements the IHttpHandler interface. If the association resource/class is resolved in terms of a HTTP handler, then the returned class will implement the interface directly. If the resource is bound to a handler factory, an

    10、extra step is necessary. A handler factory class implements the IHttpHandlerFactory interface whose GetHandler method will return an IHttpHandler-based object. How can the HTTP run time close the circle and process the page request? The IHttpHandler interface features the ProcessRequest method. By c

    11、alling this method on the object that represents the requested page, the ASP.NET infrastructure starts the process that will generate the output for the browser. The Real Page Class  The type of the HTTP handler for a particular page depends on the URL. The first time the URL is invoked, a new

    12、class is composed and dynamically compiled to an assembly. The source code of the class is the outcome of a parsing process that examines the .aspx sources. The class is defined as part of the namespace ASP and is given a name that mimics the original URL. For example, if the URL endpoint is page.as

    13、px, the name of the class is ASP.Page_aspx. The class name, though, can be programmatically controlled by setting the ClassName attribute in the Page directive. The base class for the HTTP handler is Page. This class defines the minimum set of methods and properties shared by all page handlers. The

    14、Page class implements the IHttpHandler interface. Under a couple of circumstances, the base class for the actual handler is not Page but a different class. This happens, for example, if code-behind is used. Code-behind is a development technique that insulates the code necessary to a page into a sep

    15、arate C# or Microsoft Visual Basic .NET class. The code of a page is the set of event handlers and helper methods that actually create the behavior of the page. This code can be defined inline using thetag or placed in an external class the code-behind class. A code-behind class is a class that inhe

    16、rits from Page and specializes it with extra methods. When specified, the code-behind class is used as the base class for the HTTP handler. The other situation in which the HTTP handler is not based on Page is when the configuration file of the application contains a redefinition for the PageBaseTyp

    17、e attribute in thesection.The PageBaseType attribute indicates the type and the assembly that contains the base class for page handlers. Derived from Page, this class can automatically endow handlers with a custom and extended set of methods and properties. The Page Lifecycle Once the HTTP page hand

    18、ler class is fully identified, the ASP.NET run time calls the handlers ProcessRequest method to process the request. Normally, there is no need to change the implementation of the method as it is provided by the Page class. This implementation begins by calling the method FrameworkInitialize, which

    19、builds the controls tree for the page. The method is a protected and virtual member of the TemplateControl class the class from which Page itself derives. Any dynamically generated handler for an .aspx resource overrides FrameworkInitialize. In this method, the whole control tree for the page is bui

    20、lt. Next, ProcessRequest makes the page transit various phases: initialization, loading of view state information and postback data, loading of the pages user code and execution of postback server-side events. After that, the page enters in rendering mode: the updated view state is collected; the HTML code is generated and then sent to the output console. Finally, the page is unloaded and the request is considered completely served.


    注意事项

    本文(计算机外文翻译--ASP.NET 页面对象模型)为本站会员(译***)主动上传,毕设资料网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请联系网站客服QQ:540560583,我们立即给予删除!




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们
    本站所有资料均属于原创者所有,仅提供参考和学习交流之用,请勿用做其他用途,转载必究!如有侵犯您的权利请联系本站,一经查实我们会立即删除相关内容!
    copyright@ 2008-2025 毕设资料网所有
    联系QQ:540560583