转自MSDN

  1. The code-behind file contains a partial class that inherits from a base page class. The base page class can be the Page class, or it can be another class that derives from Page.
  2. The .aspx file contains an Inherits attribute in the @ Page directive that points to the code-behind partial class.
  3. When the page is compiled, ASP.NET generates a partial class based on the .aspx file; this class is a partial class of the code-behind class file. The generated partial class file contains declarations for the page's controls. This partial class enables your code-behind file to be used as part of a complete class without requiring you to declare the controls explicitly.
  4. Finally, ASP.NET generates another class that inherits from the class generated in Step 3. This second generated class contains the code required to build the page. The second generated class and the code-behind class are compiled into an assembly that runs to render output to the browser.

转载于:https://www.cnblogs.com/inorax/archive/2007/03/01/660686.html

ASP.NET 2.0 页面编译方式相关推荐

  1. ASP.NET 2.0的编译模型

    ASP.NET 2.0支援两种编译模型(Compilation Model): 一为动态编译(Dynamic Compilation),另一个为先行编译(Precompilation). 这让程序设计 ...

  2. 艾伟:ASP.NET 2.0的编译模型

    ASP.NET 2.0支持两种编译模型(Compilation Model): 一为动态编译(Dynamic Compilation),另一个为先行编译(Precompilation). 这让程序设计 ...

  3. ASP.NET 2.0的编译行为

    在从ASP.NET1.1向2.0迁移的时候在如何生成debug和release的构建(builds)方面做了调整. 1.1 在1.1的时候(对应的IDE是VS2003),在生成(build)菜单下面有 ...

  4. ASP.NET 4.0 页面 ValidateRequest=false 失效不起作用

    当ASP.NET 2.0升级到 ASP.NET 4.0后,页面的 ValidateRequest="false" 不起作用. 因为 ASP.NET 4.0 请求验证被提前到IHtt ...

  5. ASP.NET 2.0 本地化功能:本地化 Web 应用程序的新方法

    适用于: Microsoft ASP.NET 2.0 Microsoft Visual Studio .NET Microsoft Visual Studio 2005 本地化 摘要:随着越来越多的公 ...

  6. Windows 2008 VS2008 IIS7 中调试Asp.net 2.0 两个问题

    装好了Windows 2008,VS2008,想在新的系统环境下调试一下原来的asp.net 2.0页面,设置好IIS根目录,运行出现 问题1:未能加载文件或程序集system.web.extensi ...

  7. ASP.NET 2.0中实现模板中的数据绑定

    模板化的数据绑定控件为我们在页面上显示数据提供了根本的灵活性.你可能还记得ASP.NET v1.x中的几个模板化控件(例如DataList和Repeater控件).ASP.NET 2.0仍然支持这些控 ...

  8. ASP.NET 2.0 中的代码隐藏和编译

    ASP.NET 2.0 中的代码隐藏和编译      Fritz Onion 本页内容 代码隐藏 编译 程序集生成 小结 当我撰写本专栏的时候,Microsoft® .NET Framework 2. ...

  9. Asp.net2.0页面的生命周期

    当一个获取网页的请求(可能是通过用户提 交完成的,也可能是通过超链接完成的)被发送到Web服务器后,这个页面就会接着运行从创建到处理完成的一系列事件.在我们试图建立Asp.net页面的 时候,这个执行 ...

最新文章

  1. python 3元运算符
  2. python pandas dataframe 转json_python将相类不同key的json对象转化为pandas的dataframe(上篇)...
  3. Vue项目中使用基于pdf.js的vue-pdf插件在pc浏览器下阅览PDF文件
  4. Markdown案例
  5. CSS Flex-box示例代码
  6. YYKit之YYModel
  7. 客快物流大数据项目(六十八):工作流调度
  8. iOS之解决崩溃Collection was mutated while being enumerated.
  9. lmp91000偏压配置求助
  10. 企业微信中授权小程序
  11. 假如从餐饮店的角度来看架构…
  12. #300. 【CTSC2017】吉夫特
  13. 三菱编程软件GX Works2复制粘贴错位
  14. C# 网络编程之获取本机名、ip地址、域名、物理位置
  15. Jieyue捷阅网购物商城项目介绍说明
  16. 数组如何定义和初始化?
  17. 宏任务与微任务面试题
  18. 网吧需配几名计算机信息网络安全员,网络安全员
  19. php写后台轮播图,dedecms图片相关问题—后台上传图片实现图片轮播
  20. nginx常用命令大全

热门文章

  1. 美国12大科技公司如何参与自动驾驶?
  2. DeepMind推出「控制套件」:为「强化学习智能体」提供性能基准
  3. 程序员必备!CSDN 公众号新功能上线!现在体验有惊喜!
  4. Foundation 框架 归档
  5. Java的API及Object类、String类、字符串缓存区
  6. ./和../和/三种路径的区别
  7. bzoj 3118: Orz the MST(单纯形)
  8. WPF中ControlTemplate和DataTemplate的区别
  9. arcgis api for JavaScript _跨域请求
  10. 轻松掌握nodeJS之npm