惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
MyScale Blog
MyScale Blog
雷峰网
雷峰网
博客园 - 叶小钗
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 三生石上(FineUI控件)
云风的 BLOG
云风的 BLOG
V
V2EX
宝玉的分享
宝玉的分享
酷 壳 – CoolShell
酷 壳 – CoolShell
N
Netflix TechBlog - Medium
Vercel News
Vercel News
美团技术团队
人人都是产品经理
人人都是产品经理
The Cloudflare Blog

博客园 - 小新0574

PayPal使用介绍 - 注册篇 VB6.0 IDE即将退出历史舞台 工作一年半记录 随便说说Silverlight 最近在学英语 真正理解ViewState - Part2 真正理解ViewState - part1 本地模式使用ReportViewer控件 编程使用资源文件实现多语言页面(In Action) ADO.NET2.0跟ADO.NET3.0的一些新特性简要介绍 关于Membership的设置 本地生成RDL报表文件的创建工具 使用WebService动态生成DataSet绑定到Reporting Services 可爱的上海人 Just a Test 回到了学校 到了上海 打算近期去深圳找工作 ASP.NET中的事件
第一天学习《Essential ASP.NET...》情况
小新0574 · 2006-04-09 · via 博客园 - 小新0574

1.ASP.NET work process是IIS进程(inetinfo.exe)中分离出来的一个单独进程,叫aspnet_wp.exe(IIS5,在IIS6中有所不同,如不过不是以IIS5隔离模式运行的话,则asp.net驻留在w3wp.exe进程中)
2.跟ASP的不同点,脚本语言不局限于vbscript根javascript,而是所有.net支持的语言,更重要的一点区别是由原来的解释模式改变成编译模式,好处就不说了。
3.我们每一个asp.net页面都是一个类型,继承自Page类(可以通过this.GetType(),this.GetType().BaseType进行验证),祖先类Page提供了一些很有用的成员。
4.使用代码隐藏技术改善了原来asp中html编码跟脚本混合编辑的方式,当然我们还可以用原来的方式书写脚本,但是更好的方式是写在一个单独的代码文件中,通过page的scr属性进行引用,如
<%@ Page language="c#" src="CodeBehind.cs" AutoEventWireup="false" Inherits="XXin.WebForm" %>
不过我们可以查看到vs.net2003自动生成的是
<%@ Page language="c#"  CodeBehind="CodeBehind.cs" AutoEventWireup="false" Inherits="XXin.WebForm" %>
实际上CodeBehind是不存在的,是专属于VS的,Page会忽略这个属性,那时如何运作呢,VS会编译CodeBehind指向的文件,生成程序集于bin目录下,那么aspx会去程序集中查找<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication4.WebForm1" %>XXin.WebForm这个类的定义。
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication4.WebForm1" %>
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication4.WebForm1" %><%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication4.WebForm1" %><%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication4.WebForm1" %><%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication4.WebForm1" %>