ASP vs ASP。网
ASP。网is Microsoft’s current technology for building dynamic web applications. ASP.NET was the successor to their earlier web technology for the same purpose, ASP (called Classic ASP). ASP provided a conventional platform for Web programming, while ASP.NET has many new features that make it very easy to develop web applications than using traditional methods.
ASP是什么?
ASP (Active Sever Pages)是微软公司开发的一种网络技术。ASP是他们第一个用于动态生成网站的服务器端脚本引擎。起初,它只是通过Windows NT 4.0的IIS (Internet Information Services)的一个插件。后来,它成为与Windows 2000服务器一起发布的独立产品。在ASP 2.0中,为程序员提供了6个主要的对象。它们分别是应用程序、会话、请求、响应、服务器和ASPError。这6个对象封装了web编程中最重要的概念的属性和行为。例如,可以使用Session对象表示基于cookie的会话,并维护页与页之间的状态。ASP网站可以通过COM(组件对象模型)技术访问dll。ASP网页使用。ASP文件扩展名。 ASP programmers mainly used VBScript to write pages. Jscript and PerlScript were the other choices of Active scripts used for writing ASP pages. After the introduction of ASP.NET, ASP was referred to as Classic ASP or ASP Classic.
ASP.NET是什么?
微软的ASP。网is the successor to ASP. It was released in 2002 (with .NET Framework 1.0). ASP.NET is a web application framework that can be used to develop web sites, web applications and web services. Because ASP.NET runs on CLR (Common Language Runtime), programmers can use any of the .NET languages (i.e. C#, VB.NET, etc.) to write ASP.NET web applications. ASP.NET applications can process SOAP messages through the ASP.NET SOAP extension. Web Forms the main units of development in ASP.NET. Web Forms usually have the .aspx file extension. These Web Forms are made up of static XHTML and server-side scripts for defining Web control and User controls. The code-behind model introduced in ASP.NET Framework 2.0 allows programmer to keep static code in .aspx pages, while all the dynamic code is kept in .aspx.vb or .aspx.cs or .aspx.fs files (corresponding to the VB.NET or C#.NET or F#.NET languages used). For example, the code-behind file will be Home.aspx, while its corresponding page file will be Home.aspx.cs (assuming C# is used). This is the default practice in Microsoft Visual Studio, which is an IDE that can be used to develop ASP.NET web applications.
ASP和ASP.NET的区别是什么?
与经典ASP相比,ASP。网makes it very easy for the programmers to transit from Windows programming to Web programming by introducing the concept of Web controls (very similar to Windows Forms controls). Unlike ASP, programmers are encouraged to use event-driven GUI model for web development with ASP.NET. ASP.NET integrates technologies like JavaScript to enable the programmers to create persistent states by using components such as ViewState.
留下一个回复