基于dotNetWeb应用程序开发01(.Net2.0介绍).ppt_第1页
基于dotNetWeb应用程序开发01(.Net2.0介绍).ppt_第2页
基于dotNetWeb应用程序开发01(.Net2.0介绍).ppt_第3页
基于dotNetWeb应用程序开发01(.Net2.0介绍).ppt_第4页
基于dotNetWeb应用程序开发01(.Net2.0介绍).ppt_第5页
已阅读5页,还剩28页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、.Net 2.0介绍,概念、B/S 架构、特点、ASP.Net,基于dotNet的Web应用程序开发, 2007.032007.06,一、.Net概念,基于dotNet的Web应用程序开发, 2007.032007.06,.NET Framework 是支持生成和运行下一代应用程序和 XML Web services 的内部 Windows 组件。,公共语言运行库(Common Language Runtime),VB.Net / C# / J# / C+.Net (托管代码),公共语言运行库管理内存、线程执行、代码执行、代码安全验证、编译以及其他系统服务。,一、.Net概念,基于dotNet

2、的Web应用程序开发, 2007.032007.06,.NET Framework 是支持生成和运行下一代应用程序和 XML Web services 的内部 Windows 组件。,.Net Framework Class Library,.NET Framework 类库是一个与公共语言运行库紧密集成的可重用的类型集合。该类库是面向对象的。,控制台应用程序。 Windows GUI 应用程序(Windows 窗体)。 ASP.NET 应用程序。 XML Web services。 Windows 服务。,一、.Net概念,基于dotNet的Web应用程序开发, 2007.032007.06

3、,.NET Framework 是支持生成和运行下一代应用程序和 XML Web services 的内部 Windows 组件。,一、.Net概念,基于dotNet的Web应用程序开发, 2007.032007.06,.NET Framework 是支持生成和运行下一代应用程序和 XML Web services 的内部 Windows 组件。,C/S (Client / Server),B/S (Browser / Server),QQ 网上银行,网站 Web应用,二、B/S应用,基于dotNet的Web应用程序开发, 2007.032007.06,系统开发、维护和升级的经济性,BS模式提

4、供了一致的用户界面,BS模式具有很强的开放性,BS模式的结构易于扩展,BS模式具有更强的信息系统集成性,BS模式提供灵活的信息交流和信息发布服务,1.特点,二、B/S应用,基于dotNet的Web应用程序开发, 2007.032007.06,2.Net的B/S应用,Web应用(.NET) 通过ASP.Net技术实现B/S的应用。,三、ASP.Net,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net: Microsoft ASP.NET is a set of technologies in the Microsoft .NET Framework for b

5、uilding Web applications and XML Web services.,ASP.NET pages execute on the server and generate markup such as HTML, WML, or XML that is sent to a desktop or mobile browser.,ASP.NET pages use a compiled, event-driven programming model that improves performance and enables the separation of applicati

6、on logic and user interface.,三、ASP.Net,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net: Microsoft ASP.NET is a set of technologies in the Microsoft .NET Framework for building Web applications and XML Web services.,B / S,Web,ASP.Net,基于浏览器的应用,四、ASP.Net中的控件,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net Contro

7、ls: Components in Web.,标准 Control,Html Control,Data Control,Validation Control,Navigation Control,Login Control,WebPart Control,Page,Container for Controls & Template,Custom Control,四、ASP.Net中的控件,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net Controls: Components in Web.,标准 Control,Html Control,Differen

8、ce,四、ASP.Net中的控件,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net Controls: Components in Web.,ASP.Net Control,Html,Properties of ASP.Net Controls * HTML/ Label * Code,外观、布局、可访问性、行为、数据、其他(杂项,ID),四、ASP.Net中的控件,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net Controls: Components in Web.,ASP.Net Control,Events,De

9、legates & Events of ASP.Net Controls * HTML / Label * Code,其他(杂项,Init、Load、PreRender、UnLoad、Disposed)、数据、操作,五、ASP.Net模型,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net 2.0: Microsoft ASP.NET, the newer version.,Code Model:,Page.aspx,Page.aspx.cs,Code-Behind: 将页面控制逻辑推到后台的代码文件执行.且页面是继承自后台的代码文件中定义的页面类的.,Sam

10、ple,public partial class _Default : System.Web.UI.Page,五、ASP.Net模型,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net 2.0: Microsoft ASP.NET, the newer version.,Code Model:,Page.aspx,Page.aspx.cs,Controls: 将用户操作和数据展现封装在一个页面控件中,并用标签定义控件 Events-Driven: 将用户与页面的交互过程按照事件驱动方式传递给后台处理.,Sample,五、ASP.Net模型,基于dotNet的W

11、eb应用程序开发, 2007.032007.06,ASP.Net 2.0: Microsoft ASP.NET, the newer version.,Code Model:,System,Web,UI,HtmlControls,WebControls,WebParts,Page: System.Web.UI.Page All Pages are inherits this class.,Form: System.Web.UI.HtmlControls.HtmlForm All server controls are put in the form.,五、ASP.Net模型,基于dotNet的

12、Web应用程序开发, 2007.032007.06,ASP.Net 2.0: Microsoft ASP.NET, the newer version.,Code Model:,System.Web.UI.Control,System.Web.UI.HtmlControls.HtmlControl,System.Web.UI.WebControls.WebControl,System.Web.UI.HtmlControls.*,System.Web.UI.WebControls.*,六、ASP.Net 2.0 Pages,基于dotNet的Web应用程序开发, 2007.032007.06,A

13、SP.Net 2.0 Pages: Microsoft ASP.NET, the container of marked html & controls. It is finally explained html pages.,Components:,Page 指令,Html,Script 声明块,Script 呈现块,Controls 标记块,Others ,六、ASP.Net 2.0 Pages,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net 2.0 Pages: Microsoft ASP.NET, the container of marked h

14、tml & controls. It is finally explained html pages.,Life Cycle,Init Process,Load Process,Render Process,Save Page State Process,Unload Process,六、ASP.Net 2.0 Pages,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net 2.0 Pages: Microsoft ASP.NET, the container of marked html & controls. It is finally explained

15、 html pages.,Life Cycle,初次页请求: IsPostBack = false,回发页请求: IsPostBack = true,The page first loads.,The page reloads. Universally, it is invoked by the controls postbacking.,六、ASP.Net 2.0 Pages,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net 2.0 Pages: Microsoft ASP.NET, the container of marked html & contr

16、ols. It is finally explained html pages.,Life Cycle,页视图状态 Viewstate,Save the page and controls in the page properties for restoring them in process of reloading page. It is just a hidden input domain in html page.,六、ASP.Net 2.0 Pages,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net 2.0 Pages: Microsoft AS

17、P.NET, the container of marked html & controls. It is finally explained html pages.,Life Cycle,页视图状态 Viewstate,Static State The properties of control are set by designing. They are restored before Page Init.,六、ASP.Net 2.0 Pages,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net 2.0 Pages: Microsoft ASP.NET,

18、 the container of marked html & controls. It is finally explained html pages.,Life Cycle,页视图状态 Viewstate,(2) Dynamic State The properties of control are set by runtiming. They are restored before Page Load.,六、Asp.Net 2.0 Pages,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net 2.0 Pages: Microsoft ASP.NET,

19、the container of marked html & controls. It is finally explained html pages.,Life Cycle,Init Process,PreInit,Init,InitComplete,Has constructed controls and can use them Not restore the dynamic state (Viewstate) Apply the page Themes,六、Asp.Net 2.0 Pages,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net 2.0

20、Pages: Microsoft ASP.NET, the container of marked html & controls. It is finally explained html pages.,Life Cycle,Load Process,PreLoad,Load,Control Events,Has restored all states Using the controls,LoadComplete,六、Asp.Net 2.0 Pages,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net 2.0 Pages: Microsoft ASP.N

21、ET, the container of marked html & controls. It is finally explained html pages.,Life Cycle,Render Process,PreRender,DataBind Process,PreRenderComplete,Can decide the properties of controls Using the controls final states,六、Asp.Net 2.0 Pages,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net 2.0 Pages: Micr

22、osoft ASP.NET, the container of marked html & controls. It is finally explained html pages.,Life Cycle,Save Page States Process,SaveStateComplete,Response Output Stream,Save the states into the Viewstate Provide the output stream to Response,六、Asp.Net 2.0 Pages,基于dotNet的Web应用程序开发, 2007.032007.06,ASP

23、.Net 2.0 Pages: Microsoft ASP.NET, the container of marked html & controls. It is finally explained html pages.,Life Cycle,Unload Process,Unload,Render html Clear the page object,六、Asp.Net 2.0 Pages,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net 2.0 Pages: Microsoft ASP.NET, the container of marked html

24、 & controls. It is finally explained html pages.,Life Cycle,PreInit / Init / InitComplete / (RestoreState) PreLoad / Load / Control_Events / LoadComplete PreRender / (DataBind Process) / PreRenderComplete SaveStateComplete / (Response Outstream) Unload,六、Asp.Net 2.0 Pages,基于dotNet的Web应用程序开发, 2007.032007.06,ASP.Net 2.0 Pages: Microsoft ASP.NET, the container of marked html & controls. It is finally explained html pages.,Life Cycle,六、Asp.Net

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论