ASP.NET概述(中文4500字,英文3100字)
当ASP第一次发布时,Web编程还比较困难,因为需要IIS来处理ASP页。后来,ASP.NET2.0和Visual Studio®2005通过引入网站开发模型使一切工作都变得容易了。借助该网站模型,您不必在Visual Studio 中创建新项目,而是可以指向一个目录并开始编写网页和代码。此外,您还可以使用内置的ASP.NET Development Server快速测试站点,ASP.NET Development Server将ASP.NET寄宿在一个本地进程中,并消除了必须安装IIS才能进行开发这一先决条件。下面从不同的方面来介绍Asp.net2.0技术。
1.net类库
ASP.NET是微软.NET framework整体的一部分,它包含一组大量编程用的类,满足各种编程需要。因为Visual Basic、JavaScript和C++这些编程语言的很多功能具有重叠性。举例来说,对于每一种语言,你必须包括存取文件系统、与数据库协同工作和操作字符串的方法。此外,这些语言包含相似的编程构造。都能够使用循环语句和条件语句。即使用Visual Basic写的条件语句的语法和用C++的不一样,程序的功能也是相同的。对于多种语言来说维持这一功能需要很大的工作量。那么对所有的语言创建这种功能一次,然后把这个功能用在每一种语言中岂不是更容易。然而.NET类库不完全是那样。它含有大量的满足编程需要的类。举例来说,.NET类库不仅包含处理数据库访问的类和文件协同工作,操作文本和生成图像,而且还包含更多特殊的类用在正则表达式和处理Web协议。此外.NET framework,也包含支持所有的基本变量数据类型的类,比如:字符串、整型、字节型、字符型和数组。
.NET framework是庞大的。它包含数以千计的类。(超过3,400)幸运地是,类不是简单的堆在一起。.NET framework的类被组织成有层次结构的命名空间。
一个命名空间包含一组逻辑的类。举例来说,涉及到与文件系统协同工作的类就集合在System.IO命名空间中。命名空间被组织成一个层次结构(一棵逻辑树)。树根就是SYSTEM命名空间。这个命名空间包含基本的数据类型的所有的类,例如:字符串、数组,还包含提供随机数字和日期的类。
附:英文原文
Asp.net Overview
Russ Basiura, Mike Batongbacal, Compro
When ASP was first released, Web programming was more difficult because you needed IIS to serve your ASP pages. Later, ASP.NET 2.0 and Visual Studio® 2005 made everything easier by introducing the Web site model of development. Instead of creating a new project inside Visual Studio, the Web site model lets you point to a directory and start writing pages and code. Furthermore, you can quickly test your site with the built-in ASP.NET Development Server, which hosts ASP.NET in a local process and obviates the need to install IIS to begin developing.we will introduce asp.net 2.0 technology from different aspects.
1. The .NET Framework Class Library
ASP.NET is part of Microsoft's overall .NET framework, which contains a vast set of programming classes designed to satisfy any conceivable programming need.because Visual Basic, JScript, and C++. A great deal of the functionality of these programming languages overlaps.for example, for each language, you would have to include methods for accessing the file system, working with databases, and manipulating strings.what’s more, these languages contain similar programming constructs, can represent loops and conditionals. Even though the syntax of a conditional written in Visual Basic differs from the syntax of a conditional written in C++, the programming function is the same. Maintaining all this functionality for multiple languages requires a lot of work. Wouldn't it be easier to create all this functionality once and use it for every language?however, The .NET Framework Class Library does exactly that. It consists of a vast set of classes designed to satisfy any conceivable programming need.For instance, the .NET framework contains classes for handling database access, working with the file system, manipulating text, and generating graphics. In addition, it contains more specialized classes for performing tasks such as working with regular expressions and handling network protocols. furthermore, The .NET framework contains classes that represent all the basic variable data types such as strings, integers, bytes, characters, and arrays. |