ASP.NET Languages are Truly Object-oriented
As was demonstrated earlier in this
chapter, an obvious benefit of the ASP.NET programming model is that it (unlike
its scripted counterpart) is truly object-oriented. Given that the code-behind
pages or server-side script blocks are written entirely in compiled languages
that have full access to all objects in the framework, the assumption can be
made that ASPX pages contain the tools necessary to exploit all conventions
utilized in any OOP programming environment. ASPX pages themselves can be
considered reusable objects that any .NET application can reuse by simply
importing the web application's namespace.
Additionally, it is important to note that
all ASP.NET pages inherit from the System.Web.UI.Page object, thus exposing all inheritable attributes of that base
object for use. Methods such as Page_Load, Construct, and Dispose are all readily accessible programmatically both in code blocks in
ASPX pages, or in code that
has been separated out into code-behind pages to augment your programming
needs.
Buy Fast Track ASP.NET here
© Copyright 2002 Wrox Press
These chapter is written by Brady Gaster, Marco Bellinaso & Kevin Hoffman
and taken from "Fast Track ASP.NET" published by Wrox Press Limited in June 2002; ISBN 1861007191; copyright © Wrox Press Limited 2002; all rights reserved.
No part of these chapters may be reproduced, stored in a retrieval system or transmitted in any form or by any means -- electronic, electrostatic, mechanical, photocopying, recording or otherwise -- without the prior written permission of the publisher, except in the case of brief quotations embodied in critical articles or reviews.
|
|