Introduction
Simply put, ASP.NET 2.0 is an amazing release! When ASP.NET 1.0 was first introduced in 2000, manyconsidered it a revolutionary leap forward in the area of Web application development. I believeASP.NET 2.0 is just as exciting and revolutionary. Although the foundation of ASP.NET was laid with therelease of ASP.NET 1.0, ASP.NET 2.0 builds upon this foundation by focusing on the area of developerproductivity.Simply put, ASP.NET 2.0 is an amazing release! When ASP.NET 1.0 was First Introducesd IN 2000, MANY
Considered It a revolutionary Leap Forward in The Area of Web Application Developments. I believe
ASP.NET 2.0 IS JUST AS EXCITING AND REVOLUTIONARY. Althought the Foundation of ASNET WAS LAID WITH THE
Release of asp.net 1.0, ASP.NET 2.0 Builds Upon this Foundation by Focusing on The Area of Developer
PRODUACTIVITY.
ASP.NET 2.0 brings with it a staggering number of new technologies that have been built into theASP.NET framework. After reading this book, you will see just how busy the ASP.NET team has been inthe last few years. The number of classes Inside asp.net HAS More Than Doubled, And this Release Contains More Than 40 New Server Controls!
This book covers these new built-in technologies;. It not only introduces new topics, it also shows youexamples of these new technologies in action So sit back, pull up that keyboard, and let's have some fun!
What you need for asp.net 2.0
You Will Probably Install Visual Studio 2005 Beta 1 To Work THROUGH The Examples in this book. To Workthrough Every Example in this book, you need
❑ Windows Server 2003, Windows 2000, or Windows XP ❑ Visual Studio 2005 Beta 1 ❑ SQL Server 2000 ❑ Microsoft Access
The Nice Thing Is That You Are Not Required To Have IIS in Order to Work with ASP.NET 2.0 Because THISRELESE OF ASP.NET INCLUDES A Built-in Web Server. And if you don't have SQL Server, Don't be alamed .Many of the examples that use this database can be altered to work with Microsoft Access.Who Is This Book For? This book was written to introduce you to the new features and capabilities that ASP.NET 2.0 offers.This book is meant to be only an introduction to these new features. Therefore, I do not spend any timeexplaining the basics of ASP.NET and any functionality or capabilities that have not changed between thisrelease and the last release of ASP.NET.
This book is meant for the user who understands or has worked with ASP.NET 1.0 or 1.1. If you arebrand new to Web application development, however, this book can help you get up to speed on thenew features included in the upcoming release of ASP .NET-As Long Asp.Net and the underlying .NET Framework Are Not Covered. If You Are Brand New To ASP.NET, BESURE TO Also Check Out Beginning ASP.NET 1.1 with VB .NET 2003 ( ISBN: 0-7645-5707-6) Or BeginningASP.NET 1.1 with Visual C # .NET 2003 (ISBN: 0-7645-5708-4), Depending On Your Language of Choice, Tohelp You Understand The Basics of Asp.net.
IS this book for the Visual Basic Developer or for the c # developer? I am Happy to Say-Both! Thisbook cover All Examples in Both VB and C # if The code differs considerably.
What This Book CoversAs I stated, this book spends its time reviewing the big changes that have occurred in the 2.0 release ofASP.NET. After the introduction, each major new feature included in ASP.NET 2.0 is covered in moredetail. The following sections present the contents of each chapter.Chapter 1: Introduction to ASP.NET 2.0This first chapter gives a good grounding in the new features of ASP.NET 2.0 The chapter takes a look atsome of the major new features and capabilities included It starts by.. Giving you a little bit of history ofasp.net and
Chapter 2: Visual Studio 2005This chapter takes a look at the next generation of the major IDE for developing .NET applications: Visual Studio 2005. Previous releases of this IDE included Visual Studio .NET 2003 and Visual Studio.NET 2002. This chapter focuses on The 2005 Release and how you can use it to buildbetter asp.net application more quickly Than
Chapter 3: Application and Page FrameworksThe third chapter covers the frameworks of ASP.NET applications as well as the structure and frameworksprovided for single ASP.NET pages This chapter shows you how to build ASP.NET applicationsusing IIS or the built-in Web server. That Now Comes With Visual Studio 2005. This Chapter Also ShowSyou The New Folders and Files Added to Asp.Net. It Also Covers New Ways of Compiling Code and how toperform cross Page Posting.
Chapter 4: New Ways to Handle DataADO.NET incorporates some radical changes This chapter takes a look at the new data model providedby ASP.NET, which allows you to handle the retrieval, updating, and deleting of data quickly and logically.This new. data model enables you to use one or two lines of code to get at data stored in everythingfrom SQL Server to XML files.Chapter 5:. Site NavigationIt is quite apparent that many developers do not simply develop single pages Developers build applicationsand, therefore, they need mechanics that deal with functionality throughout the entire application, not just the pages. One of the new application capabilities provided by ASP.NET 2.0 is the site navigationsystem covered in this chapter. The underlying navigation system enables you to define your application'snavigation structure THROUGH AN XML File. Finally, IT Introduces A Whole Series of New NavigationServer Controls That Work with The Data from these XML Files.
Chapter 6: Working with Master PagesIn addition to the new site navigation system provided by ASP.NET 2.0-for working with the entireapplication as opposed to working with singular pages-the ASP.NET team developed a way to createtemplated pages This chapter examines the. Creation of these Templates (KNOWN As Master Pages) Andhow to Apply Them To Your Content Pages THROUGHOUT AN ASP.NET Application.
Chapter 7: Themes and SkinsCSS files provided in ASP.NET 1.0 / 1.1 are simply not adequate, especially in the area of server controls.The developer is never sure of the HTML output that is generated This chapter takes a look at how todeal with. ......................
Chapter 8:. Membership and Role ManagementThis chapter covers the new membership and role management system developed to simplify addingauthentication and authorization to your ASP.NET applications These two new systems are extensiveand make some of the more complicated authentication and authorization implementations of the past adistant memory . The chapter focuses on using the web.config file for controlling how these systems areapplied, as well as the new server controls that work with the underlying systems.Chapter 9: PersonalizationDevelopers are always looking for ways to store information pertinent to the end user. After it is stored, this personalization data has to be persisted for future visits or for grabbing other pages within the sameapplication. The ASP.NET team developed a way to store this information-the ASP.NET personalizationsystem. The great thing about this system, Like the Other Systems IntroducesD Before It, is That Youconfigure The Entire Behavior of The System Fr Om the web.config file.
Chapter 10:. Portal Frameworks and Web PartsThis chapter looks at Web Parts-a new way of encapsulating pages into smaller and more manageableobjects The great thing with Web Parts is that they can be made of a larger Portal Framework, whichthen can enable end users to COMPLETESELY Modify HOW The Web Parts Are Constructed on The page-incrudingthe Appearance and The Layout of The Web Parts on the page.
Chapter 11:. SQL Cache InvalidationThis chapter discusses the biggest change to the caching capabilities in ASP.NET-SQL cache invalidation.This new caching capability allows you to invalidate cached items based on changes thatoccur in the database This new process ensures a new way of keeping your pages as fresh as possible, but use the smallest number of resources to do so.Chapter 12:. Additional New ControlsASP.NET 2.0 contains more than 40 new server controls Many of the controls are covered in the otherchapters of the book, but this chapter looks at the new server controls still unexplained. Included in thischapter are discussions of the BulletedList, HiddenField, FileUpload, MultiView, View, Wizard, DynamicImage, and ImageMap server controls.
Chapter 13:. Changes to ASP.NET 1.0 ControlsIn addition to the new server controls that come with ASP.NET 2.0, you will find considerable changeshave been made to the server controls that we all know and love from ASP.NET 1.0 This chapter takes Alook at The Traditional Server Controls That Have Changed.
Chapter 14:. Administration and ManagementBesides making it easier for the developer to be more productive in building ASP.NET applications, theASP.NET team also put considerable focus into making it easier to manage the application In the past, using ASP.NET 1.0 / 1.1, you managed the ASP.NET applications by changing values in an XML configuration file This chapter provides an overview of the new GUI tools that come with this latest release that enable you to easily and effectively manage Web applications.Chapter 15:. Visual Basic 8.0 and C # 2.0Language EnhancementsIn addition to major changes to ASP.NET, considerable change has occurred in Visual Basic 8.0 and C # 2.0. The changes to these two languages, the primary languages used for ASP.NET development, are discussed in this chapterConventionsI HAVE Used A Number of Different Styles of Text And Layout in The Book to Help Differentiate Among Varioustypes of Information. Here Are Examples of The Styles I Use and an expected of what the Y Mean:
❑ New Words That I'm Defining Are Shown In Italics. ❑ Keys That You Press on The Keyboard, Like Ctrl and Enter, Are Shown in Initial Caps and Spelled ASTHEY APPEAR on the keyboard.
Code appears in a number of different ways. If I'm talking about a code word in paragraph text-forexample, when discussing the if ... else loop-the code word is shown in this font. If it's a block ofcode that you CAN Type As a Program and Run, It's Shown On Separate Lines, ITHIN A GRAY BOX, LIKE THIS: Public Static Void Main () {Afunc (1, 2, "ABC");} Sometimes you see code in a mixture of styles , Like this: // if We Haven't reached the end, return true, otherwise // set the position to invalid, and return false.pos ; if (POS <4) Return True; Else {POS = -1; Return false;} The code with a white background represents code I've already presented and that you do not need toexamine further The code with the gray background is what I want you to focus on at this point.I demonstrate the syntactical usage of. Methods, Properties, And So ON Using The Following Format:
Sqldependency = "Database: Table" Here, The Italicized Parts Indicate PlaceHolder Text: Object References, Variables, or Parameter Values to beinserted.
Most of the code Examples Throughout The Book Are Presented As Numbered Listings with descriptivetitles, LIKE THIS:
Listing 1-3: Targeting WML Devices in Your ASP.NET PAGES IN YOUR
Each listing is numbered as 1-3, where the first number represents the chapter number, and the numberfollowing the hyphen represents the sequential number for where that listing falls within the chapter.Downloadable code from the Wrox Web site (www.wrox.com) Also Uses this Numbering System, So Youcan Easily Locate The Examples You Are Looking For.
All code is shown in both VB and C # if warranted. The exception is for code in which the only differenceis, for example, the value given to the Language attribute in the Page directive. In such situations, Idon't repeat the code for the C # Version; So the code is shown only overce, as in the folload = "vb"%>