当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP.NET > ASP.NET 2.0 新特征

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

ASP.NET 2.0 新特征


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

ASP.NET 2.0 improves ASP.NET by adding several new features.
ASP.NET 2.0 通过加入了多个新特性来对ASP.NET进行了加强。


Improvements in ASP.NET 2.0
在ASP.NET 2.0 中的改进

ASP.NET 2.0 was designed to make web development easier and quicker.
ASP.NET 2.0 可让WEB开发更加简单更加快捷。

Design goals for ASP.NET 2.0:
ASP.NET 2.0的设计目标:

  • Increase productivity by removing 70% of the code
    通过削减70%的代码来加快开发
  • Use the same controls for all types of devices
    针对所有类型的设备使用相同的控件
  • Provide a faster and better web server platform
    提供了一个更快更好的WEB服务平台
  • Simplify compilation and installation
    简单的编译和安装
  • Simplify the administration of web applications
    WEB应用的简单管理

What's New in ASP.NET 2.0?
ASP.NET 2.0 新特性?

Some of the new features in ASP.NET 2.0 are:
在ASP.NET2.0中有一些新的特性:

  • Master Pages, Themes, and Web Parts
    主页,主题,以及WEB部件
  • Standard controls for navigation
    针对导航的标准控件
  • Standard controls for security
    针对安全的标准控件
  • Roles, personalization, and internationalization services
    角色,个性化以及国际化服务
  • Improved and simplified data access controls
    加强并简化了数据访问控件
  • Full support for XML standards like, XHTML, XML, and WSDL
    完全支持XML标准,比如XHTML,XML以及WSDL
  • Improved compilation and deployment (installation)
    加强了编译以及部署(安装)
  • Improved site management
    加强了站点的管理
  • New and improved development tools
    一些全新的以及加强了的开发工具

The new features are described below.
下面将描述新特性


Master Pages
主页

ASP.NET didn't have a method for applying a consistent look and feel for a whole web site.
ASP.NET 无法在外观上让整个WEB站点保持一致。

Master pages in ASP.NET 2.0 solves this problem.
在ASP.NET 2.0 里的主页就可以解决这个问题

A master page is a template for other pages, with shared layout and functionality. The master page defines placeholders for content pages. The result page is a combination (merge) of the master page and the content page.
通过共享布局以及功能块,一个主页可针对其他页面成为一个模板。主页可以为内容页定义占位符。主页和内容页结合后就可以产生结果页。

Read more about master pages.[更多有关主页的信息]


Themes
主题

Themes is another feature of ASP.NET 2.0. Themes, or skins, allow developers to create a customized look for web applications.
在ASP.NET2.0中还有个特性是主题,主题,或是皮肤,允许开发人员建立自定义的WEB应用程序外观。

Design goals for ASP.NET 2.0 themes:
设计ASP.NET2.0主题的目标是:

  • Make it simple to customize the appearance of a site
    让自定义站点的外观容易一些
  • Allow themes to be applied to controls, pages, and entire sites
    允许让主题应用到控件,页面以及整个站点上
  • Allow all visual elements to be customized
    允许自定义所有可视元素

Web Parts
WEB部件

ASP.NET 2.0 Web Parts can provide a consistent look for a site, while still allowing user customization of style and content.
在允许用户自定义样式以及内容的前提下ASP.NET WEB部件可以提供站点一致的外观。

New controls:
新控件:

  • Zone controls - areas on a page where the content is consistent
    区域控件 - 在页面上那些内容一致的区域
  • Web part controls - content areas for each zone
    WEB部件控件 - 每个区域的内容部分

Navigation
导航

ASP.NET 2.0 has built-in navigation controls like
在ASP.NET2.0中有了内置的导航控件,像:

  • Site Maps
    网站地图
  • Dynamic HTML menus
    动态HTML菜单
  • Tree Views  
    树状浏览

Security
安全

Security is very important for protecting confidential and personal information.
在保护机密以及个人信息上安全是非常重要的。

In ASP.NET 2.0 the following controls has been added:
在ASP.NET2.0 中加入了以下这些控件:

  • A Login control, which provides login functionality
    登陆控件,可提供登陆功能
  • A LoginStatus control, to control the login status
    登陆状态控件,控制登陆的状态
  • A LoginName control to display the current user name
    登陆名控件,来显示当前用户名
  • A LoginView control, to provide different views depending on login status
    登陆浏览控件,根据登陆状态提供不同的显现内容
  • A CreateUser wizard, to allow creation of user accounts
    建立用户向导,允许建立用户帐号
  • A PasswordRecovery control, to provide the "I forgot my password" functionality
    密码找回控件,可提供“忘记密码”的功能。

Roles and Personalization
角色以及个性化

Internet communities are growing very popular.
互连网交流日趋流行

ASP.NET 2.0 has personalization features for storing user details. This provides an easy way to customize user (and user group) properties.
ASP.NET 2.0 拥有个性化特性可存储用户的详细资源。这可以提供一种简单的方法来自定义用户(以及用户组)的属性。


Internationalization
国际化

Reaching people with different languages is important if you want to reach a larger audience.
如果你想要影响到更多的人群,使用多种语言就非常重要。

ASP.NET 2.0 has improved support for multiple languages.
ASP.NET 2.0 改进了对多种语言的支持


Data Access
数据访问

Many web sites are data driven, using databases or XML files as data sources.
多数网站通过使用数据库或是XML文件来做为数据驱动。

With ASP.NET this involved code, and often the same code had to be used over and over in different web pages.
使用ASP.net 这是个很麻烦的代码,而且相同的代码必须在不同的页面里重复出现。

A key goal of ASP.NET 2.0 was to ease the use of data sources.
在ASP.NET 2.0中有个关键的目标就是要让数据源的使用更加轻松。

ASP.NET 2.0 has new data controls, removing much of the need for programming and in-depth knowledge of data connections.
asp.net 2.0拥有新的数据控件集,删除了很多需要编程以及深入了解数据连接知识的内容。


Mobility Support
支持移动

The problem with Mobile devices is screen size and display capabilities.
移动设备的屏幕尺寸以及显示性能是个问题

In ASP.NET, the Microsoft Mobile Internet Toolkit (MMIT) provided this support.
在ASP.NET 中,微软互联网移动工具箱(MMIT) 对这方面提供了支持

In ASP.NET 2.0, MMIT is no longer needed because mobile support is built into all controls.
在ASP.NET 2.0中,MMIT不再需要因为这些移动支持已经建立到所有控件中了。


Images
图象

ASP.NET 2.0 has new controls for handling images:
ASP.NET 2.0 有了处理图象的新控件:

  • The ImageMap control - image map support
    图象热点控件 - 可以指出图象的热点映射
  • The DynamicImage control  - image support for different browsers
    动态图篇控件 - 对种浏览器上都可以支持

These controls are important for better image display on mobile devices, like hand-held computers and cell phones.
这些控件对于在移动设备上显示更优质的图片起到了重要的作用,比如手提电脑以及个人电话


Automatic Compilation
自动编译

ASP.NET 2.0 provides automatic compilation. All files within a directory will be compiled on the first run, including support for WSDL, and XSD files.
ASP.NET 2.0 提供了自动的编译,所有在同一目录的文件会在第一次运行的时候进行编译,这包括对WSDL以及XSD文件的支持


Compiled Deployment (Installation) and Source Protection
编译的部署(安装)以及代码保护

ASP.NET 2.0 also provides pre-compilation. An entire web site can be pre-compiled. This provides an easy way to deploy (upload to a server) compiled applications, and because only compiled files are deployed, the source code is protected.
ASP.NET 2.0 还提供了预先编译,一个完整的站点可以进行预先编译。这就给上传编译后的应用程序提供了简单的方法,并且因为上传的只是编译后的文件,所以代码是受保护的。


Site Management
站点管理

ASP.NET 2.0 has three new features for web site configuration and management:
ASP.NET 2.0有针对网站设置以及管理的三个新特性:

  • New local management console
    全新的本地管理控制台
  • New programmable management functions (API)
    全新的,可编程的管理函数(API)
  • New web-based management tool
    全新的基于网站的管理工具

Development Tools
开发工具

With ASP.NET Visual Studio.NET was released with project and design features targeted at corporate developers.
定位于企业级的开发者 ASP.NET 可视化工作室跟随着工程对外释放了。

With ASP.NET 2.0, Visual Studio 2005 was released.
伴随着ASP.NET2.0 ,VS2005已经释放

Key design features for Visual Studio 2005 include:
在VS2005中几个关键的特性包括:

  • Support for the features described above
    支持以上描述过的所有特性
  • Upload files from anywhere (FTP, File System, Front Page....)
    可以在任何地方上载文件
  • No project files, allowing code to be manipulated outside Visual Studio
    没有工程文件,允许在VS外面操作代码
  • Integrated Web Site Administration Tool
    完整的网站管理工具
  • No "build" step - ability to compile on first run
    没有 “建立” 步骤 - 可以在第一次运行的时候进行编译

Visual Web Developer is a new free ASP.NET 2.0 tool for non-corporate developers who don't have access to Visual Studio.NET.
Visual Web Developer 是针对那些非企业应用并且不需要访问Visual Studio.NET开发者的免费新选择

评论 (0) All

登陆 | 还没注册?