Book description
ASP.NET allows web sites to display unique pages for each visitor rather than show the same static HTML pages. The release of ASP.NET 2.0 is a revolutionary leap forward in the area of web application development. It brings with it a wealth of new and exciting built-in functions that reduce the amount of code you'll need to write for even the most common applications.
With more than 50 new server controls, the number of classes inside ASP.NET 2.0 has more than doubled, and in many cases, the changes in this new version are dramatic. This book will alert you to every new feature and capability that ASP.NET 2.0 provides so that you'll be prepared to put these new technologies into action. Greatly expanded from the original best-selling Professional ASP.NET 2.0, this new special edition adds hundreds of pages of new coverage of advanced and new techniques relating to data and data sources, the provider model, personalization, membership, role management, localization, configuration, migration, and Altas.
Bonus CD-ROM and DVD
The bonus DVD includes a 180-day trial of Microsoft Visual Studio 2005 Professional
The accompanying CD-ROM features a valuable library of chapters from other key Wrox books. It contains more than 1,000 pages from more than 15 Wrox ASP.NET 2.0, C# 2005, VB 2005, .NET 2.0, and SQL Server 2005 books.
What you will learn from this book
The idea of the server control and its pivotal role in ASP.NET development
How to create templated ASP.NET pages using the new master page feature
Techniques for debugging and handling errors
How to work with data from enterprise databases including SQL Server 2005 and Oracle(r)
Ways to package and deploy ASP.NET applications
How to retrieve, update, and delete data quickly and logically
How to implement the cultures and regions features to localize your web site into multiple languages for different visitors
How to use the new "Altas" add-in for ASP.NET 2.0 to add Ajax-style capabilities to your ASP.NET applications
An understanding of how to use and extend the new pro?vider model for accessing data stores, processes, and more
How to keep track of your application's performance and health with new monitoring tools
When and how to migrate your ASP.NET 1.x applications to 2.0
Who this book is for
This book is for experienced programmers and developers who are looking to make the transition to ASP.NET 2.0.
Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.
This book is also available as part of the 5-book ASP.NET 2.0 Wrox Box (ISBN: 0-470-11757-5). This 5-book set includes:
Professional ASP.NET 2.0 Special Edition (ISBN: 0-470-04178-1)
ASP.NET 2.0 Website Programming: Problem - Design - Solution (ISBN: 0764584642)
Professional ASP.NET 2.0 Security, Membership, and Role Management (ISBN: 0764596985)
Professional ASP.NET 2.0 Server Control and Component Development (ISBN: 0471793507)
ASP.NET 2.0 MVP Hacks and Tips (ISBN: 0764597663)
CD-ROM with more than 1000 pages of bonus chapters from 15 other .NET 2.0 and SQL Server(TM) 2005 Wrox books
DVD with 180-day trial version of Microsoft(r) Visual Studio(r) 2005 Professional Edition
Table of contents
- Copyright
- About the Authors
- Credits
- Acknowledgments
- Introduction
-
1. Hello ASP.NET 2.0!
- 1.1. A Little Bit of History
- 1.2. The Goals of ASP.NET 2.0
- 1.3. Additional New Features of ASP.NET 2.0
- 1.4. A New IDE for Building ASP.NET 2.0 Pages
- 1.5. Summary
- 2. Visual Studio 2005
- 3. Application and Page Frameworks
- 4. ASP.NET Server Controls and Client-Side Scripts
-
5. ASP.NET Web Server Controls
- 5.1. An Overview of Web Server Controls
- 5.2. The Label Server Control
- 5.3. The Literal Server Control
- 5.4. The TextBox Server Control
- 5.5. The Button Server Control
- 5.6. The LinkButton Server Control
- 5.7. The ImageButton Server Control
- 5.8. The HyperLink Server Control
- 5.9. The DropDownList Server Control
- 5.10. Visually Removing Items from a Collection
- 5.11. The ListBox Server Control
- 5.12. The CheckBox Server Control
- 5.13. The CheckBoxList Server Control
- 5.14. The RadioButton Server Control
- 5.15. The RadioButtonList Server Control
- 5.16. Image Server Control
- 5.17. Table Server Control
- 5.18. The Calendar Server Control
- 5.19. AdRotator Server Control
- 5.20. The Xml Server Control
- 5.21. Panel Server Control
- 5.22. The PlaceHolder Server Control
- 5.23. Summary
-
6. ASP.NET 2.0 Web Server Controls
- 6.1. BulletedList Server Control
- 6.2. HiddenField Server Control
-
6.3. FileUpload Server Control
- 6.3.1. Uploading Files Using the FileUpload Control
- 6.3.2. Giving ASP.NET Proper Permissions to Upload Files
- 6.3.3. Understanding File Size Limitations
- 6.3.4. Uploading Multiple Files from the Same Page
- 6.3.5. Placing the Uploaded File into a Stream Object
- 6.3.6. Moving File Contents from a Stream Object to a Byte Array
- 6.4. MultiView and View Server Controls
-
6.5. Wizard Server Control
- 6.5.1. Customizing the Side Navigation
- 6.5.2. Examining the AllowReturn Attribute
- 6.5.3. Working with the StepType Attribute
- 6.5.4. Adding a Header to the Wizard Control
- 6.5.5. Working with the Wizard's Navigation System
- 6.5.6. Utilizing Wizard Control Events
- 6.5.7. Using the Wizard Control to Show Form Elements
- 6.6. ImageMap Server Control
- 6.7. Summary
-
7. Validation Server Controls
- 7.1. Understanding Validation
- 7.2. Client-Side versus Server-Side Validation
- 7.3. ASP.NET Validation Server Controls
- 7.4. Turning Off Client-Side Validation
- 7.5. Using Images and Sounds for Error Notifications
- 7.6. Working with Validation Groups
- 7.7. Summary
-
8. Working with Master Pages
- 8.1. Why Do You Need Master Pages?
- 8.2. The Basics of Master Pages
- 8.3. Coding a Master Page
- 8.4. Coding a Content Page
- 8.5. Specifying Default Content in the Master Page
- 8.6. Programmatically Assigning the Master Page
- 8.7. Nesting Master Pages
- 8.8. Container-Specific Master Pages
- 8.9. Event Ordering
- 8.10. Caching with Master Pages
- 8.11. Summary
- 9. Themes and Skins
- 10. Collections and Lists
-
11. Data Binding in ASP.NET 2.0
-
11.1. Data Source Controls
-
11.1.1. SqlDataSource Control
- 11.1.1.1. Configuring a Data Connection
- 11.1.1.2. Data Source Mode Property
- 11.1.1.3. Filtering Data Using SelectParameters
- 11.1.1.4. Conflict Detection Property
- 11.1.1.5. SqlDataSource Events
- 11.1.1.6. Using the Data Source Events to Handle Database Errors
- 11.1.1.7. Using the SqlDataSource with Oracle
- 11.1.2. AccessDataSource Control
- 11.1.3. XmlDataSource Control
- 11.1.4. ObjectDataSource Control
- 11.1.5. SiteMapDataSource Control
-
11.1.1. SqlDataSource Control
- 11.2. Configuring Data Source Control Caching
- 11.3. Storing Connection Information
- 11.4. Using Bound List Controls with Data Source Controls
- 11.5. Other Databound Controls
- 11.6. Inline Data-Binding Syntax
- 11.7. Expressions and Expression Builders
- 11.8. Summary
-
11.1. Data Source Controls
-
12. Data Management with ADO.NET
-
12.1. Basic ADO.NET Features
- 12.1.1. Common ADO.NET Tasks
- 12.1.2. Basic ADO.NET Namespaces and Classes
- 12.1.3. Using the Connection Object
- 12.1.4. Using the Command Object
- 12.1.5. Using the DataReader Object
- 12.1.6. Using Data Adapter
- 12.1.7. Using Parameters
- 12.1.8. Understanding DataSet and DataTable
- 12.1.9. Using Oracle as Your Database with ASP.NET 2.0
-
12.2. Newly Added Features in ADO.NET 2.0
- 12.2.1. Bulk Loading of Data from a Variety of Sources
- 12.2.2. Batch Processing Multiple Updates
- 12.2.3. Multiple Active Result Sets
- 12.2.4. Asynchronous Command Execution
- 12.2.5. Asynchronous Connections
- 12.3. Summary
-
12.1. Basic ADO.NET Features
- 13. Working with XML
-
14. Introduction to the Provider Model
- 14.1. Understanding the Provider
-
14.2. Bringing a Provider Model to ASP.NET 2.0
- 14.2.1. Setting Up Your Provider to Work with Microsoft SQL Server 7.0, 2000, or 2005
- 14.2.2. Membership Providers
- 14.2.3. Role Providers
- 14.2.4. The Personalization Provider
- 14.2.5. The SiteMap Provider
- 14.2.6. SessionState Providers
-
14.2.7. Web Event Providers
- 14.2.7.1. System.Web.Management.EventLogWebEventProvider
- 14.2.7.2. System.Web.Management.SimpleMailWebEventProvider
- 14.2.7.3. System.Web.Management.TemplatedMailWebEventProvider
- 14.2.7.4. System.Web.Management.SqlWebEventProvider
- 14.2.7.5. System.Web.Management.TraceWebEventProvider
- 14.2.7.6. System.Web.Management.WmiWebEventProvider
- 14.2.8. Configuration Providers
- 14.2.9. The WebParts Provider
- 14.3. Configuring Providers
- 14.4. Summary
-
15. Extending the Provider Model
- 15.1. Providers Are One Tier in a Larger Architecture
- 15.2. Modifying through Attribute-Based Programming
- 15.3. Examining ProviderBase
-
15.4. Building Your Own Providers
- 15.4.1. Creating the CustomProviders Application
- 15.4.2. Constructing the Class Skeleton Required
- 15.4.3. Creating the XML User Data Store
- 15.4.4. Defining the Provider Instance in the web.config File
- 15.4.5. Not Implementing Methods and Properties of the MembershipProvider Class
- 15.4.6. Implementing Methods and Properties of the MembershipProvider Class
- 15.4.7. Using the XmlMembershipProvider for User Login
- 15.5. Extending Pre-Existing Providers
- 15.6. Summary
-
16. Site Navigation
- 16.1. XML-Based Site Maps
- 16.2. SiteMapPath Server Control
-
16.3. TreeView Server Control
- 16.3.1. Identifying the TreeView Control's Built-In Styles
- 16.3.2. Examining the Parts of the TreeView Control
- 16.3.3. Binding the TreeView Control to an XML File
- 16.3.4. Selecting Multiple Options in a TreeView
- 16.3.5. Specifying Custom Icons in the TreeView Control
- 16.3.6. Specifying Lines Used to Connect Nodes
- 16.3.7. Working with the TreeView Control Programmatically
- 16.4. Menu Server Control
- 16.5. SiteMap Data Provider
- 16.6. SiteMap API
- 16.7. URL Mapping
- 16.8. Sitemap Localization
- 16.9. Security Trimming
- 16.10. Nesting SiteMap Files
- 16.11. Summary
-
17. Personalization
- 17.1. The Personalization Model
-
17.2. Creating Personalization Properties
- 17.2.1. Adding a Simple Personalization Property
- 17.2.2. Using Personalization Properties
- 17.2.3. Adding a Group of Personalization Properties
- 17.2.4. Using Grouped Personalization Properties
- 17.2.5. Defining Types for Personalization Properties
- 17.2.6. Using Custom Types
- 17.2.7. Providing Default Values
- 17.2.8. Making Personalization Properties Read-Only
- 17.3. Anonymous Personalization
- 17.4. Programmatic Access to Personalization
- 17.5. Personalization Providers
- 17.6. Managing Application Profiles
- 17.7. Summary
-
18. Membership and Role Management
- 18.1. Authentication
- 18.2. Authorization
-
18.3. ASP.NET 2.0 Authentication
- 18.3.1. Setting Up Your Web Site for Membership
-
18.3.2. Adding Users
- 18.3.2.1. Using the CreateUserWizard Server Control
- 18.3.2.2. Seeing Where Users Are Stored
- 18.3.2.3. Working with the CreateUserWizard Control
- 18.3.2.4. Incorporating Personalization Properties in the Registration Process
- 18.3.2.5. Adding Users Programmatically
- 18.3.2.6. Changing How Users Register with Your Application
- 18.3.3. Asking for Credentials
- 18.3.4. Working with Authenticated Users
- 18.3.5. Showing the Number of Users Online
- 18.3.6. Dealing with Passwords
-
18.4. ASP.NET 2.0 Authorization
- 18.4.1. Using the LoginView Server Control
- 18.4.2. Setting Up Your Web Site for Role Management
- 18.4.3. Adding and Retrieving Application Roles
- 18.4.4. Deleting Roles
- 18.4.5. Adding Users to Roles
- 18.4.6. Getting All the Users of a Particular Role
- 18.4.7. Getting All the Roles of a Particular User
- 18.4.8. Removing Users from Roles
- 18.4.9. Checking Users in Roles
- 18.4.10. Understanding How Roles Are Cached
- 18.5. Using the Web Site Administration Tool
- 18.6. Public Methods of the Membership API
- 18.7. Public Methods of the Roles API
- 18.8. Summary
-
19. Portal Frameworks and Web Parts
- 19.1. Introducing Web Parts
- 19.2. Building Dynamic and Modular Web Sites
- 19.3. Working with Classes in the Portal Framework
- 19.4. Creating Custom Web Parts
- 19.5. Connecting Web Parts
- 19.6. Summary
-
20. Security
- 20.1. Authentication and Authorization
-
20.2. Applying Authentication Measures
- 20.2.1. The <authentication> Node
-
20.2.2. Windows-Based Authentication
- 20.2.2.1. Creating Users
- 20.2.2.2. Authenticating and Authorizing a User
- 20.2.2.3. Looking Closely at the <allow> and <deny> Nodes
- 20.2.2.4. Authenticating and Authorizing a Group
- 20.2.2.5. Authenticating and Authorizing an HTTP Transmission Method
- 20.2.2.6. Integrated Windows Authentication
- 20.2.2.7. Basic Authentication
- 20.2.2.8. Digest Authentication
- 20.2.3. Forms-Based Authentication
- 20.2.4. Passport Authentication
- 20.3. Authenticating Specific Files and Folders
- 20.4. Programmatic Authorization
- 20.5. Identity and Impersonation
- 20.6. Securing Through IIS
- 20.7. Summary
-
21. State Management
- 21.1. What Are Your Choices?
-
21.2. Understanding the Session Object in ASP.NET 2.0
- 21.2.1. Sessions and the Event Model
- 21.2.2. Configuring Session State Management
- 21.2.3. In-Process Session State
- 21.2.4. Out-of-Process Session State
- 21.2.5. SQL-Backed Session State
- 21.2.6. Extending Session State with Other Providers
- 21.2.7. Cookieless Session State
- 21.2.8. Choosing the Correct Way to Maintain State
- 21.3. The Application Object
- 21.4. QueryStrings
- 21.5. Cookies
- 21.6. PostBacks and Cross-Page PostBacks
- 21.7. Hidden Fields, ViewState, and ControlState
- 21.8. Using HttpContext.Current.Items for Very Short-Term Storage
- 21.9. Summary
-
22. Caching
- 22.1. Caching
- 22.2. Caching Programmatically
-
22.3. Using the SQL Server Cache Dependency
- 22.3.1. Enabling Databases for SQL Server Cache Invalidation
- 22.3.2. Enabling Tables for SQL Server Cache Invalidation
- 22.3.3. Looking at SQL Server
- 22.3.4. Looking at the Tables That Are Enabled
- 22.3.5. Disabling a Table for SQL Server Cache Invalidation
- 22.3.6. Disabling a Database for SQL Server Cache Invalidation
- 22.3.7. SQL Server 2005 Cache Invalidation
- 22.4. Configuring Your ASP.NET Application
- 22.5. Testing SQL Server Cache Invalidation
- 22.6. Summary
-
23. Debugging and Error Handling Techniques
- 23.1. Design-Time Support
- 23.2. Tracing
- 23.3. Debugging
- 23.4. Exception and Error Handling
- 23.5. Summary
-
24. File I/O and Streams
- 24.1. Working with Drives, Directories, and Files
- 24.2. Reading and Writing Files
- 24.3. Working with Serial Ports
- 24.4. Network Communications
- 24.5. Summary
-
25. User and Server Controls
- 25.1. User Controls
-
25.2. Server Controls
- 25.2.1. Project Setup
- 25.2.2. Control Attributes
- 25.2.3. Control Rendering
- 25.2.4. Adding Tag Attributes
- 25.2.5. Styling HTML
- 25.2.6. Themes and Skins
- 25.2.7. Adding Client-Side Features
- 25.2.8. Detecting and Reacting to Browser Capabilities
- 25.2.9. Using ViewState
- 25.2.10. Raising PostBack Events
- 25.2.11. Handling PostBack Data
- 25.2.12. Composite Controls
- 25.2.13. Templated Controls
- 25.2.14. Creating Control Design-Time Experiences
- 25.3. Summary
- 26. Modules and Handlers
- 27. Using Business Objects
-
28. Mobile Development
- 28.1. Creating a NEW ASP.NET Mobile Web Application
- 28.2. Using Control Containers
- 28.3. Using StyleSheets
-
28.4. Using ASP.NET Mobile Controls
- 28.4.1. The AdRotator Control
- 28.4.2. The Calendar Control
- 28.4.3. The Label Control
- 28.4.4. The TextBox Control
- 28.4.5. The TextView Control
- 28.4.6. The Command Control
- 28.4.7. The Image Control
- 28.4.8. The PhoneCall Control
- 28.4.9. The Link Control
- 28.4.10. The List Control
- 28.4.11. The ObjectList Control
- 28.4.12. The SelectionList Control
- 28.5. Using Validation Controls
- 28.6. Navigating between Mobile Web Forms
- 28.7. The Mobile Web User Control
- 28.8. Using Emulators
- 28.9. Understanding Devices Filters
- 28.10. State Management in ASP.NET Mobile Applications
- 28.11. Summary
-
29. Building and Consuming XML Web Services
- 29.1. Communication Between Disparate Systems
- 29.2. Building a Simple XML Web Service
- 29.3. Consuming a Simple XML Web Service
- 29.4. Transport Protocols for Web Services
- 29.5. Overloading WebMethods
- 29.6. Caching Web Service Responses
- 29.7. SOAP Headers
- 29.8. Consuming Web Services Asynchronously
- 29.9. Summary
- 30. Localization
-
31. Configuration
- 31.1. Configuration Overview
-
31.2. Common Configuration Settings
- 31.2.1. Connecting Strings
- 31.2.2. Configuring Session State
- 31.2.3. Compilation Configuration
- 31.2.4. Browser Capabilities
- 31.2.5. Custom Errors
- 31.2.6. Authentication
- 31.2.7. Anonymous Identity
- 31.2.8. Authorization
- 31.2.9. Locking-Down Configuration Settings
- 31.2.10. ASP.NET Page Configuration
-
31.2.11. Configuring ASP.NET Runtime Settings
- 31.2.11.1. Enabling and Disabling ASP.NET Applications
- 31.2.11.2. Fully Qualified Redirect URLs
- 31.2.11.3. Request Time-Out
- 31.2.11.4. Maximum Request Length
- 31.2.11.5. Buffer Uploads
- 31.2.11.6. Thread Management
- 31.2.11.7. Application Queue Length
- 31.2.11.8. Managing Queue Limits
- 31.2.11.9. Output Caching
- 31.2.12. Configuring the ASP.NET Worker Process
- 31.2.13. Storing Application-Specific Settings
- 31.2.14. Programming Configuration Files
- 31.2.15. Protecting Configuration Settings
- 31.2.16. Editing Configuration Files
- 31.3. Summary
-
32. Instrumentation
- 32.1. Working with the Event Log
- 32.2. Using Performance Counters
- 32.3. Application Tracing
- 32.4. Understanding Health Monitoring
- 32.5. Summary
- 33. Administration and Management
-
34. Packaging and Deploying ASP.NET Applications
- 34.1. Deployment Pieces
- 34.2. Methods of Deploying Web Applications
-
34.3. Looking More Closely at Installer Options
- 34.3.1. Working with the Deployment Project Properties
- 34.3.2. The File System Editor
- 34.3.3. Creating a Desktop Shortcut to the Web Application
- 34.3.4. The Registry Editor
- 34.3.5. The File Types Editor
- 34.3.6. The User Interface Editor
- 34.3.7. The Custom Actions Editor
- 34.3.8. The Launch Conditions Editor
- 34.4. Summary
-
A. Visual Basic 8.0 and C# 2.0 Language Enhancements
- A.1. Overview of the Changes
- A.2. Generics
- A.3. Iterators
- A.4. Anonymous Methods
- A.5. Operator Overloading
- A.6. Global Namespace Qualifiers
- A.7. Partial Classes
- A.8. Visual Basic XML Documentation
- A.9. Static Classes
- A.10. Property Accessors
- A.11. Unsigned Types
- A.12. Default Instances
- A.13. New Visual Basic Keywords
- B. Migrating ASP.NET 1.x Projects
- C. Using Atlas
- D. ASP.NET Online Resources
- Praise for Professional ASP.NET 2.0
Product information
- Title: Professional ASP.NET 2.0 Special Edition
- Author(s):
- Release date: October 2006
- Publisher(s): Wrox
- ISBN: 9780470041789
You might also like
book
Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition
The first edition of this book was released at the 2001 Tech Ed conference in Atlanta, …
book
Beginning Visual C#® 2005
Creating next-generation software and applications is now easier than ever with the release of Visual C# …
book
ASP.NET 3.5 Unleashed
is the most comprehensive book available on the Microsoft ASP.NET 3.5 Framework, covering all aspects of …
book
ASP.NET 2.0 Unleashed
ASP.NET 2.0 Unleashed is a revision of the best-selling ASP.NET Unleashed, by Microsoft Software Legend Stephen …