当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP.NET > ASP 和 ASP.NET 之间的区别

ASP.NET
ASP.NET 2.0 - Navigation 导航
C#中new和override区别
ASP.NET中 Bin,App_Browser,App_code,App_Data,App_Theme 等文件

ASP 和 ASP.NET 之间的区别


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 937 ::
收藏到网摘: n/a

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.NET
ASP.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 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 Components
ASP.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程序运行在同一台服务器上。

评论 (1) 1 All

登陆 | 还没注册?