ASP.NET数据库编程及ASP.NET 页面对象模型(含外文出处)
来源:56doc.com 资料编号:5D2739 资料等级:★★★★★ %E8%B5%84%E6%96%99%E7%BC%96%E5%8F%B7%EF%BC%9A5D2739
资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用. 密 保 惠 帮助
资料介绍
外文资料翻译译文
对由 Microsoft? Internet 信息服务 (IIS) 处理的 Microsoft? ASP.NET 页面的每个请求都会被移交到 ASP.NET HTTP 管道。HTTP 管道由一系列托管对象组成,这些托管对象按顺序处理请求,并将 URL 转换为纯 HTML 文本。HTTP 管道的入口是HttpRuntime 类。ASP.NET 结构为辅助进程中的每个 AppDomain 创建一个此类的实例。(注意,辅助进程为每个当前正在运行的 asp.NET 应用程序维护一个特定AppDomain。)
HttpRuntime 类从内部池中获取 HttpApplication 对象,并安排此对象来处理请求。HTTP 应用程序管理器完成的主要任务就是找到将真正处理请求的类。当请求 .aspx 资源时,处理程序就是页面处理程序,即从 Page 继承的类的实例。资源类型和处理程序类型之间的关联关系存储在应用程序的配置文件中。更确切地说,默认的映射集是在 machine.config 文件的 <httpHandlers> 部分定义的。但是,应用程序可以在本地的 web.config 文件中自定义自己的 HTTP 处理程序列表。以下这一行代码就是用来为 .aspx 资源定义 HTTP 处理程序的。
11000字
外文原文(复印件)
The ASP.NET database plait distance and page object model of asp.NET
To from Microsoft? Processed Microsoft of the Internet information service( IIS)? Each claims of the page of ASP.NET will be hand over the piping of ASP.NET HTTP.The piping of HTTP is entrusted to the care of the object by a series to constitute, these entrust to the care of the object to handle the claim in order, and convert URL as the pure HTML text originally.The entrance of the piping of HTTP is httpRuntime.ASP.NET struct found every example for AppDomain.( Please watch for, lend support to the progress as each one just circulate at present of the asp.NET application procedure support a particular AppDomain.)
HttpRuntime obtains the object of HttpApplication from the internal pond, and arranged this object to handle the claim.The main mission that the HTTP application procedure management machine complete is a type that find out to request real processing.When claim.The aspx resources hour, the processing procedure is a page to handle the procedure, namely solid example of the type inherit from the Page.The connection relation between the resources type and the processing procedure type is saving in apply procedure install document.Say more tangibly, recognize tacitly of reflect to shoot to gather is in the document of machine.config of< httpHandlers> the part is definite.But, applied procedure can in native document of web.config from define own HTTP processing procedure row form.Following this code is to use come is.The aspx resources definition HTTP handles the procedure of.
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory"/>
File extension can with handle procedure mutually connection, and more is and processing the procedure factory is mutually the connection.Under the condition of all, objects of HttpApplication that be responsible for handling the claim will acquire a carries out the IHttpHandler to connect the oscular object.If handle the procedure according to the HTTP to analyze the resources/ type of connection, then the type that return will carry out to connect directly.If the resources was bind to settle to manage the procedure factory everywhere, then still needing the additional step.Handle the procedure factory carries out the IHttpHandlerFactory to connect, this connect the oscular method of GetHandler and will return an according to IHttpHandler of object. |