Building a Web Application

What's New in 2.0

  • Dynamically Compiled //动态编译Classes - In addition to //除...之外(还)placing pre-compiled//预编译 classes in the Bin directory, ASP.NET 2.0 now allows you to place shared class file sources //共享的类文件的源程序in the App_Code directory//目录, where they will be dynamically compiled //动态编译just like ASPX pages.

  • Simplified Code Behind Pages - Code-behind files in ASP.NET 2.0 use a new language feature called partial classes, which allow code-behind files//代码文件 to be dynamically compiled with their associated //相关联的ASPX pages into a single class type. This means you no longer //不再need to declare member variables in the code-behind page //代码页面for each control, which greatly simplifies maintenance//维护 of sites that use this code-separation //代码分离technique.

  • Several New Server Controls - ASP.NET 2.0 include over 50 new controls, making it easier than ever to create common UI elements in your web pages. For example, the Data controls simplify data access scenarios//情节,剧本, the Login controls add security to your site, the Navigation controls enable site navigation, and WebPart controls allow you to easily create personalized web pages//个性化的页面.

  • New Declarative Expression Syntax//语法 - The declarative expression syntax in ASP.NET 2.0 allows you to substitute //代替application settings//应用程序设置, connection strings, and localization resources into your pages before they are parsed and executed//解析和执行.
This section discusses these and other features of basic ASP.NET applications.


A web application in ASP.NET is a collection of pages, controls, code modules//组件,模块, and services all running under a single web server application directory (usually IIS). ASP.NET makes it really easy to build the types of dynamic web applications that exist everywhere on the Internet today. It provides a simple programming model based on //基于the .NET Framework and several built-in //内置controls and services that enable many of the common scenarios //情节,剧本found in most applications, with very little effort or code. In this section we demonstrate //示范,演示<concentrate:集中>the basic elements of a web application that we will use throughout the remainder //剩余部分,剩余物<remind :提醒>of Quickstart tutorial, including:
  • The ASP.NET Page Framework (Web Forms)
  • Web and HTML Server Controls
  • Shared Code Modules or Assemblies
This section also discusses a few improvements //提高,改善made to these application building blocks //建筑块in ASP.NET 2.0 over previous versions of ASP.NET.

posted on 2007-04-20 17:00  改变热爱  阅读(226)  评论(0)    收藏  举报

导航