The first book to fully reflect the new ASP.NET 2.0 Beta, ASP.NET v. 2.0--The Beta Version identifies powerful new best practices for ASP.NET development. It will give you a jumpstart in creating new applications, optimizing their performance, extending them to mobile environments, improving their accessibility, and simplifying their deployment and management.
Drawing on their unsurpassed experience and unfettered access to Microsoft's ASP.NET development team, the authors cover every significant platform enhancement. Using realistic code examples, they illuminate improvements in data access, user interface development, portals, personalization, security, and many other areas. Coverage includes:
- Using ASP.NET 2.0's new Visual Web Developer and administration tools
- Simplifying database integration with "code-free" data binding and new data source controls
- Using Master Pages to improve control over application look-and-feel
- Strengthening security with membership providers, security server controls, cookieless forms authentication, and the new Role Manager
- Simplifying personalization with ASP.NET 2.0 Themes
- Building fast, flexible portals with newly-improved Web Parts and the new Portal Framework
- Delivering more effective mobile device support--with less complexity
- Previewing new controls--including FormView, CreateUserControl, and other innovations absent from earlier ASP.NET 2.0 Technology Previews
- Leveraging major improvements to existingcontrols
- Improving accessibility for disabled site visitors and application users
Currently assessing ASP.NET 2.0? Piloting it? Already building production applications with it? Wherever you stand, wherever you're headed with ASP.NET 2.0, this book will get you there.
Table of Contents
1. An Introduction to ASP.NET 2.0.
What's Wrong with ASP.NET 1.x?
Compilation and Deployment.
2. Tools and Architecture.
Visual Studio 2005.
Pre-compilation of Applications.
3. Data Source Controls and Data Binding.
Code-Free Data Binding.
Data Source Controls.
4. The GridView, DetailsView, and FormView Controls.
The GridView Control.
The DetailsView Control.
The FormView Control.
The New and Simplified Data Binding Syntax.
Building Data-Bound Pages with Visual Studio 2005.
5. Master Pages and Navigation.
Master Pages in Detail.
Security Server Controls.
Cookieless Forms Authentication.
The Web Site Administration Tool.
7. Personalization and Themes.
Storing and Retrieving User Personalization Data.
The Provider Design Pattern.
Writing a Personalization Provider.
Configuring Profile Properties.
8. Web Parts and the PortalFramework.
The ASP.NET 2.0 Portal Framework.
A Simple Web Parts Example Page.
Connecting Web Parts.
Working with Web Parts in Code.
Web Parts and Visual Studio 2005.
9. Pages, Posting, Resources, and Validation.
Client-Side Script Features.
New Form Capabilities.
Changes to Page Directives.
Changes to Page Headings.
The Page and Control Life Cycle.
Site and Page Counters.
Resources and Localization.
10. The New Browser and Mobile Device Controls.
Programming for Different Types of Devices.
The Unified Control and Adapter Architecture.
Summary of the New Controls in ASP.NET 2.0.
The New Controls in Detail.
New Controls within the HtmlControls Namespace.
Controls and Attributes Specific to Mobile Devices.
Mobile Browser Emulators.
11. Enhancements to Existing Controls.
Summary of New Control Features.
Tables of Control Enhancements.
Details of Individual Control Enhancements.
Enabling Database Cache Invalidation.
Invalidating the ASP.NET Cache.
The SqlCacheDependency Class.
The CacheDependency Class.
13. Configuration and Administration.
Application Configuration Files.
The Web Site Administration Tool.
The Management API.
So, it comes as no surprise to see a new version of the .NET Framework, and with it version 2.0 of ASP.NET, starting to appear on the horizon. Sometime in 2005 we should have the final release of version 2.0 of the .NET Framework, together with new versions of Visual Studio and other tools. In the meantime, Microsoft is following its usual policy of involving developers as early in the process as possible, giving them the chance to provide feedback on the new product.
So, with the final release of version 2.0 still some way off, why would you be interested in it now? The simple answer is, of course, that as a developer you need to keep abreast of what's going on in your industry. And more than that, being aware of what's coming in the future might well in- fluence what you do today, in the overall design of your applications and the preparations and plans you make for upcoming products and applications. This book will help by introducing you to the new features that will be in version 2.0 of ASP.NET and how they can benefit your Web site and Web application development. And perhaps you don't actually intend to install the early releases of version 2.0, but you just want to know more about what it offers. No problem—that's OK with us as well!
Versions and Release Schedules
Before youread any further, it's important that you understand what this book covers and how it relates to the future and final releases of ASP.NET version 2.0.
The first public beta of version 2.0 of the .NET Framework arrives in mid-2004. There will probably be another beta release later in 2004, followed by a final release. However, there are unlikely to be any significant changes between the first beta release and the finished product because this phase of the development cycle concentrates on moving from "code complete" status though fine-tuning and bug fixing to final release.
This book covers the first beta release, and as such the class interface listings and code samples you see here cannot be guaranteed to work in exactly the same way right through to the final release version. However, the principles and general syntax are unlikely to differ by anything more than minor details.
What This Book Covers
This is not just a reference book but also a feature-packed exploration of version 2.0 of ASP.NET. It covers the changes between ASP.NET 1.x and ASP.NET 2.0 that make it even easier to build efficient, attractive, and interactive Web sites and Web applications using the new features in ASP.NET, while considerably reducing developer effort and code requirements.
The first chapter presents an overview of the new version and also lays out the roadmap for the remainder of the book. The following chapters discuss how the common requirements of developers have been addressed, starting with the ubiquitous need to access data from your pages and then progressing through to a detailed look at the new configuration and management features that version 2.0 provides.
Along with the final release of ASP.NET 2.0 we will, of course, see a new version of Visual Studio and other tools. While we do include some details of the new version of Visual Studio, called Visual Studio 2005, the book does not concentrate on this area. Many developers will be writing ASP.NET pages using other tools (including, we suspect, a text editor) while Visual Studio 2005 is still under development.
What You Need to Use This Book
The main thing you need to use this book is the beta release of version 2.0 of the .NET Framework. Other than that, you'll need something to transfer your creative efforts into ASP.NET files on disk. We still prefer a text editor, though early experiments with Visual Studio 2005 suggest that Windows Notepad will be seeing the light of day a lot less often in the future. However, it doesn't really matter which tool or editor you use as long as it can generate text files with the
.aspx file extension.
Finally, you'll need to be prepared to change the way you think about building code for your Web pages because in many cases you don't actually have to write any code at all in version 2.0. See Chapter 1 for more details, and get ready to be more productive!