求英语翻译 关于ASP.NET 谢谢大侠们Rendering techniqueASP.NET uses a visited composites rendering technique.During compilation,the template(.aspx)file is compiled into initialization code which builds a control tree(the composite)representi
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 14:53:47
求英语翻译 关于ASP.NET 谢谢大侠们Rendering techniqueASP.NET uses a visited composites rendering technique.During compilation,the template(.aspx)file is compiled into initialization code which builds a control tree(the composite)representi
求英语翻译 关于ASP.NET 谢谢大侠们
Rendering technique
ASP.NET uses a visited composites rendering technique.During compilation,the template(.aspx)file is compiled into initialization code which builds a control tree(the composite)representing the original template.Literal text goes into instances of the Literal control class,and server controls are represented by instances of a specific control class.The initialization code is combined with user-written code(usually by the assembly of multiple partial classes)and results in a class specific for the page.The page doubles as the root of the control tree.
Actual requests for the page are processed through a number of steps.First,during the initialization steps,an instance of the page class is created and the initialization code is executed.This produces the initial control tree which is now typically manipulated by the methods of the page in the following steps.As each node in the tree is a control represented as an instance of a class,the code may change the tree structure as well as manipulate the properties/methods of the individual nodes.Finally,during the rendering step a visitor is used to visit every node in the tree,asking each node to render itself using the methods of the visitor.The resulting HTML output is sent to the client.
After the request has been processed,the instance of the page class is discarded and with it the entire control tree.This is usually a source of confusion among novice ASP.NET programmers that rely on class instance members that are lost with every page request/response cycle.
求英语翻译 关于ASP.NET 谢谢大侠们Rendering techniqueASP.NET uses a visited composites rendering technique.During compilation,the template(.aspx)file is compiled into initialization code which builds a control tree(the composite)representi
渲染技术
ASP.NET使用一个访问了复合材料的渲染technique.During汇编,模板(.aspx)文件分为初始化代码生成一个控件树(综合)代表原template.Literal进入文本编制控制的文学类的实例,和服务器控件是通过一个具体实例初始化代码控制class.The代表与用户编写的代码(由多个部分类集会通常情况下)和为page.The页类具体成果相结合双打作为根控件树.
该网页的实际要求进行处理通过steps.First数目,在初始化步骤,一个页面类的实例是创建和初始化代码executed.This生产初步控制树,现在通常由操纵方法在树中的每个节点以下steps.As页是作为一个类的实例代表了控制,代码可能会改变树的结构,以及操作过程中呈现步骤的属性/方法个人nodes.Finally,访问者是用来访问树中的每个节点,每个节点要求使自己使用所产生的HTML输出visitor.The的方法是发送到客户端.
该请求后已处理,该页面类的实例将被丢弃,并用它来控制整个tree.This通常是新手之间的ASP.NET程序员,关于类的实例是与每一个页面请求的成员失去了依靠混乱的源/反应周期.