
12
|
Chapter 1: Introduction
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Because the functionality of the .NET Framework is exposed as a set of object-
oriented classes rather than a set of obscure and finicky API calls, many opera-
tions that were difficult or downright impossible in classic ASP are simple in
ASP.NET. For example, about ten lines of code can perform a DNS lookup on a
domain name using the classes in the System.Net and System.Net.Sockets
namespaces. This task wasn’t even possible in classic ASP, without the use of
external components.
What’s more, because many classes in the .NET framework can be used as base
classes, it is easy to reuse them in your own applications by deriving from a class
to provide common functionality and then extending the derived class to add
functionality specific to your application. In fact, much of the .NET Framework is
built this way. For example, all classes that make up the ASP.NET Server Controls
are ultimately derived from the
Control class of the System.Web.UI namespace,
which provides properties and methods common to all server controls.
OO Is at the Heart of Every ASP.NET Page
One of the coolest things about object orientation in ASP.NET is that you don’t
have to know much about how to use it since most of it is under the covers for
basic page development. Every ASP.NET page implicitly ...