ASP.NET与ASP相比的优点浅析

开发 后端
ASP.NET与ASP相比的优点是什么呢?那么本文将向你介绍是那些优点。

ASP.NET与ASP相比,ASP.NET has better language support, a large set of new controls and XML based components, and better user authentication.ASP.NET有更好的语言支持,更为庞大的新控件群以及基于XML的组建,还有更出色的用户鉴定。

ASP.NET provides increased performance by running compiled code.ASP.NET通过运行编译代码来提高执行效率

ASP.NET code is not fully backward compatible with ASP.ASP.NET代码并不完全向后兼容于ASP

New in ASP.NETASP.NET的新颖之处

Better language support更好的语言支持

Programmable controls可编写的控件

Event-driven programming事件驱动程序

XML-based components基于XML的组件

User authentication, with accounts and roles通过帐号和角色来进行用户身份验证

Higher scalability更高的可扩展性

Increased performance - Compiled code增加执行效率 - 编译代码

Easier configuration and deployment更简单的配置以及开发

Not fully ASP compatible并不完全兼容ASP

Language Support语言支持

ASP.NET uses the new ADO.NET.ASP.NET使用新的ADO.NET

ASP.NET supports full Visual Basic, not VBScript.ASP.NET 支持完整的 VB而不是VBscript

ASP.NET supports C# (C sharp) and C++.ASP.NET 支持C#和C++

ASP.NET supports JScript as before.ASP.NET 跟以前一样支持JScript

ASP.NET与ASP相比所变现的别的一些特性。

ASP.NET Controls。ASP.NET 控件

ASP.NET contains a large set of HTML controls. Almost all HTML elements on a page can be defined as ASP.NET control objects that can be controlled by scripts.ASP.NET 包含了大量的HTML控件集。大多数在页面上的HTML元素可以定义为ASP.NET控件对象,这些对象可以通过脚本进行控制。

ASP.NET also contains a new set of object oriented input controls, like programmable list boxes and validation controls.ASP.NET 还包含了一组新的input控件导向对象,像可编写选框列表以及验证控件。

A new data grid control supports sorting, data paging, and everything you expect from a dataset control.一个新的数据栏控件支持排序,数据分页,以及所有你所期望能在数据集中想做的事。

Event Aware Controls事件感知控件

All ASP.NET objects on a Web page can expose events that can be processed by ASP.NET code.所有在WEB 页上的ASP.NET对象可以揭露事件以被用来作为可处理的ASP.NET代码。

Load, Click and Change events handled by code makes coding much simpler and much better organized.加载,点击和改变这些事件通过更为组织有序的简单代码来进行处理。

ASP.NET ComponentsASP.NET 组件

ASP.NET components are heavily based on XML. Like the new AD Rotator, that uses XML to store advertisement information and configuration.ASP.NET 组件群严密的基于XML。比如像全新的广告回转器,就是使用XML来存放广告的信息以及设置信息。

User Authentication用户身份鉴定

ASP.NET supports forms-based user authentication, including cookie management and automatic redirecting of unauthorized logins.ASP.NET 支持基于表单的用户身份鉴定,其中包括cookie的管理以及未经认可的登陆自动转向

(You can still do your custom login page and custom user checking).你依然可以自定义登陆页面以及自定义的用户检查

User Accounts and Roles用户帐号以及角色

ASP .NET allows for user accounts and roles, to give each user (with a given role) access to different server code and executables.ASP.NET 允许加入用户帐户以及角色任务,给每个用户(通过分配角色任务)来访问不同的服务器代码和可执行的代码。

High Scalability更高度的伸缩性

Much has been done with ASP.NET to provide greater scalability.ASP.NET 在提供更出色的可伸缩性方面下足工夫。

Server to server communication has been greatly enhanced, making it possible to scale an application over several servers. One example of this is the ability to run XML parsers, XSL transformations and even resource hungry session objects on other servers.增强了服务器与服务器之间的联通,使得完全能够在数台服务器上应用大型应用程序。这方面的一个案例就是能够运行XML解析器,XSL转换器甚至是其他服务器上的hungry session资源。

Compiled Code编译的代码

The first request for an ASP.NET page on the server will compile the ASP.NET code and keep a cached copy in memory. The result of this is greatly increased performance.***次请求服务器上的ASP.NET页面时将会对ASP.NET代码进行编译并将其产生的缓存拷贝到内存中。这样做的结果就是能够大大提高执行速度。

Easy Configuration简单的配置

Configuration of ASP.NET is done with plain text files.在普通的文本文件上就可配置ASP.NET

Configuration files can be uploaded or changed while the application is running. No need to restart the server. No more metabase or registry puzzle.在程序运行的时候配置文件可以上载或是改变。而不需要重新启动服务器。不再会有metabase和登记问题

Easy Deployment简单的部署

No more server restart to deploy or replace compiled code. ASP.NET simply redirects all new requests to the new code.服务器不再需要通过重启来进行部署或是取代编译后的代码。ASP.NET 会顺其自然地将新的请求转向到新的代码

Compatibility兼容性

ASP.NET is not fully compatible with earlier versions of ASP, so most of the old ASP code will need some changes to run under ASP.NET.ASP.NET 不能完全和早期版本的ASP进行兼容。因此大多数老的ASP代码将通过一些改变才能在ASP.NET下运行。

To overcome this problem, ASP.NET uses a new file extension ".aspx". This will make ASP.NET applications able to run side by side with standard ASP applications on the same server.要解决这个问题。ASP.NET 使用了新的文件拓展名“.aspx” 这使ASP.NET程序能够与ASP程序运行在同一台服务器上。

ASP.NET与ASP相比的一些优点就向你介绍到这里,希望对你有所帮助。

【编辑推荐】

  1. ASP.NET页面跳转的三大方法详解
  2. ASP.NET程序小数点保留两位解析
  3. ASP.NET上传文件控件实例详解
  4. IIS ASP.NET的本质与联系浅析
  5. IIS ASP.NET的进程模式浅析
责任编辑:仲衡 来源: CSDN博客
相关推荐

2009-08-05 15:50:13

ASP.NET优点

2009-07-28 17:29:14

ASP.NET优点

2009-07-22 18:03:00

ASP.NET ASP

2009-12-02 09:07:45

ASP.NET 4.0

2009-07-28 14:10:14

2009-07-31 12:43:59

ASP.NET MVC

2009-07-24 13:41:15

ASP.NET AJA

2009-08-05 18:36:12

ASP.NET Che

2009-07-27 15:34:11

MembershipASP.NET

2009-07-27 10:18:12

TypeResolveASP.NET

2009-08-10 13:32:15

ASP.NET TimASP.NET组件设计

2009-08-03 13:38:18

ASP.NET编程模型

2009-07-24 13:41:03

IIS ASP.NET

2009-07-24 18:02:46

ASP.NET编程

2009-08-04 17:16:16

ASP.NET代码优化

2009-08-05 16:50:09

ASP.NET For

2009-08-05 16:53:14

ASP.NET组件设计

2009-08-05 13:16:43

ASP.NET URL

2009-08-10 18:19:37

ASP.NET安装环境

2009-08-10 14:55:43

ASP.NET htt
点赞
收藏

51CTO技术栈公众号