did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780470041789

Professional ASP.NET 2.0 Special Edition

by ; ; ; ;
  • ISBN13:

    9780470041789

  • ISBN10:

    0470041781

  • Edition: CD
  • Format: Hardcover
  • Copyright: 2006-10-16
  • Publisher: Wrox
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $59.99

Summary

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

Acknowledgments ix
Introduction xxxiii
Hello ASP.NET 2.0!
1(24)
A Little Bit of History
1(2)
The Goals of ASP.NET 2.0
3(6)
Developer Productivity
3(3)
Administration and Management
6(3)
Performance and Scalability
9(1)
Additional New Features of ASP.NET 2.0
9(13)
New Developer Infrastructures
9(5)
New Compilation System
14(1)
Health Monitoring for Your ASP.NET Applications
15(1)
Reading and Writing Configuration Settings
16(2)
Localization
18(1)
Additions to the Page Framework
18(2)
New Objects for Accessing Data
20(1)
New Server Controls
21(1)
A New IDE for Building ASP.NET 2.0 Pages
22(1)
Summary
23(2)
Visual Studio 2005
25(32)
The Versions of Visual Studio 2005
26(1)
The Start Page
27(1)
The Document Window
28(6)
Views in the Document Window
28(1)
The Tag Navigator
29(1)
Page Tabs
30(1)
Code Change Status Notifications
31(1)
Error Notifications and Assistance
32(2)
The Toolbox
34(2)
The Solution Explorer
36(1)
The Server Explorer
37(1)
The Properties Window
38(1)
Lost Windows
39(1)
Other Common Visual Studio Activities
39(16)
Creating New Projects
39(1)
Making References to Other Objects
39(3)
Using Smart Tags
42(1)
Saving and Importing Visual Studio Settings
43(1)
Validating Your HTML
44(2)
Reaching Out to the Community
46(1)
Working with Snippets
47(2)
Working with Your Classes in a New Way
49(6)
Summary
55(2)
Application and Page Frameworks
57(54)
Application Location Options
57(5)
Built-in Web Server
58(1)
IIS
59(1)
FTP
60(1)
Web Site Requiring FrontPage Extensions
60(2)
The ASP.NET Page Structure Options
62(6)
Inline Coding
63(2)
New Code-Behind Model
65(3)
ASP.NET 2.0 Page Directives
68(10)
@Page
69(2)
@Master
71(2)
@Control
73(1)
@Import
74(2)
@Implements
76(1)
@Register
76(1)
@Assembly
76(1)
@PreviousPageType
77(1)
@MasterType
77(1)
@OutputCache
77(1)
@Reference
78(1)
ASP.NET Page Events
78(2)
Dealing with PostBacks
80(1)
Cross-Page Posting
81(7)
ASP.NET Application Folders
88(6)
\App_Code Folder
88(5)
\App_Data Folder
93(1)
\App_Themes Folder
93(1)
\App_GlobalResources Folder
93(1)
\App_LocalResources
93(1)
\App_WebReferences
94(1)
\App_Browsers
94(1)
Compilation
94(4)
Build Providers
98(8)
Using the Built-in Build Providers
100(1)
Using Your Own Build Providers
100(6)
Global.asax
106(4)
Summary
110(1)
ASP.NET Server Controls and Client-Side Scripts
111(44)
ASP.NET Server Controls
111(7)
Types of Server Controls
112(1)
Building with Server Controls
113(3)
Working with Server Control Events
116(2)
Applying Styles to Server Controls
118(8)
Examining the Controls' Common Properties
118(2)
Changing Styles Using Cascading Style Sheets
120(6)
HTML Server Controls
126(6)
Looking at the HtmlControl Base Class
128(1)
Looking at the HtmlContainerControl Class
129(1)
Looking at All the HTML Classes
129(1)
Using the HtmlGenericControl Class
130(2)
Manipulating Pages and Server Controls with JavaScript
132(5)
Using Page.ClientScript.RegisterClientScriptBlock
133(2)
Using Page.ClientScript.RegisterStartupScript
135(1)
Using Page.ClientScript.RegisterClientScriptInclude
136(1)
Client-Side Callback
137(16)
Comparing a Typical Postback to a Callback
137(3)
Using the Callback Feature --- A Simple Approach
140(4)
Using the Callback Feature with a Single Parameter
144(3)
Using the Callback Feature --- A More Complex Example
147(6)
Summary
153(2)
ASP.NET Web Server Controls
155(52)
An Overview of Web Server Controls
155(1)
The Label Server Control
156(2)
The Literal Server Control
158(1)
The TextBox Server Control
159(4)
Using the Focus() Method
160(1)
Using AutoPostBack
161(1)
Using AutoCompleteType
162(1)
The Button Server Control
163(4)
The CausesValidation Property
163(1)
The CommandName Property
164(1)
Buttons That Work with Client-Side JavaScript
165(2)
The LinkButton Server Control
167(1)
The ImageButton Server Control
167(2)
The HyperLink Server Control
169(1)
The DropDownList Server Control
169(3)
Visually Removing Items from a Collection
172(2)
The ListBox Server Control
174(3)
Allowing Users to Select Multiple Items
174(1)
An Example of Using the ListBox Control
174(2)
Adding Items to a Collection
176(1)
The CheckBox Server Control
177(3)
How to Determine Whether Check Boxes Are Checked
179(1)
Assigning a Value to a Check Box
179(1)
Aligning Text Around the Check Box
180(1)
The CheckBoxList Server Control
180(3)
The RadioButton Server Control
183(2)
The RadioButtonList Server Control
185(1)
Image Server Control
186(2)
Table Server Control
188(2)
The Calendar Server Control
190(9)
Making a Date Selection from the Calendar Control
190(2)
Choosing a Date Format to Output from the Calendar
192(1)
Making Day, Week, or Month Selections
193(1)
Working with Date Ranges
193(2)
Modifying the Style and Behavior of Your Calendar
195(4)
AdRotator Server Control
199(2)
The Xml Server Control
201(1)
Panel Server Control
202(2)
The PlaceHolder Server Control
204(1)
Summary
205(2)
ASP.NET 2.0 Web Server Controls
207(36)
BulletedList Server Control
207(6)
HiddenField Server Control
213(1)
FileUpload Server Control
214(11)
Uploading Files Using the FileUpload Control
215(3)
Giving ASP.NET Proper Permissions to Upload Files
218(1)
Understanding File Size Limitations
219(1)
Uploading Multiple Files from the Same Page
220(4)
Placing the Uploaded File into a Stream Object
224(1)
Moving File Contents from a Stream Object to a Byte Array
224(1)
MultiView and View Server Controls
225(4)
Wizard Server Control
229(11)
Customizing the Side Navigation
231(1)
Examining the AllowReturn Attribute
231(1)
Working with the StepType Attribute
232(1)
Adding a Header to the Wizard Control
232(1)
Working with the Wizard's Navigation System
233(1)
Utilizing Wizard Control Events
234(1)
Using the Wizard Control to Show Form Elements
235(5)
ImageMap Server Control
240(2)
Summary
242(1)
Validation Server Controls
243(34)
Understanding Validation
243(1)
Client-Side versus Server-Side Validation
244(1)
ASP.NET Validation Server Controls
245(24)
Validation Causes
247(1)
The RequiredFieldValidator Server Control
247(5)
The CompareValidator Server Control
252(4)
The RangeValidator Server Control
256(4)
The RegularExpressionValidator Server Control
260(1)
The CustomValidator Server Control
261(5)
The ValidationSummary Server Control
266(3)
Turning Off Client-Side Validation
269(1)
Using Images and Sounds for Error Notifications
270(2)
Working with Validation Groups
272(3)
Summary
275(2)
Working with Master Pages
277(30)
Why Do You Need Master Pages?
277(2)
The Basics of Master Pages
279(2)
Coding a Master Page
281(3)
Coding a Content Page
284(13)
Mixing Page Types and Languages
287(2)
Specifying Which Master Page to Use
289(1)
Working with the Page Title
290(1)
Working with Controls and Properties from the Master Page
291(6)
Specifying Default Content in the Master Page
297(2)
Programmatically Assigning the Master Page
299(1)
Nesting Master Pages
300(3)
Container-Specific Master Pages
303(2)
Event Ordering
305(1)
Caching with Master Pages
306(1)
Summary
306(1)
Themes and Skins
307(24)
Using ASP.NET 2.0 Themes
307(5)
Applying a Theme to a Single ASP.NET Page
307(2)
Applying a Theme to an Entire Application
309(1)
Removing Themes from Server Controls
310(1)
Removing Themes from Web Pages
311(1)
Understanding Themes When Using Master Pages
311(1)
Understanding the StyleSheetTheme Attribute
312(1)
Creating Your Own Themes
312(10)
Creating the Proper Folder Structure
312(1)
Creating a Skin
313(2)
Including CSS Files in Your Themes
315(3)
Having Your Themes Include Images
318(4)
Defining Multiple Skin Options
322(2)
Programmatically Working with Themes
324(1)
Assigning the Page's Theme Programmatically
324(1)
Assigning a Control's SkinID Programmatically
324(1)
Themes, Skins, and Custom Controls
325(4)
Summary
329(2)
Collections and Lists
331(34)
Arrays
331(9)
Resizing Arrays
334(1)
Finding Objects in Arrays
334(4)
Sorting Objects in Arrays
338(2)
The System.Collections Namespace
340(13)
ArrayList
340(3)
IEnumerable and IEnumerator
343(1)
ICollection
343(1)
Lists and IList
344(1)
Dictionaries and IDictionary
345(1)
Hashtables
346(4)
SortedList
350(1)
Queues and Stacks
351(2)
Specialized Collections
353(1)
HybridDictionary and ListDictionary
353(1)
StringCollection, StringDictionary, and NameValue/Collection
353(1)
BitArray
354(1)
The Microsoft.VisualBasic.Collection Class
354(1)
Strongly Typed Collections
354(3)
System.Collections.Generics
357(4)
What Are Generics?
357(1)
Generic Lists
358(2)
Generic Dictionary
360(1)
Other Generic Collections
361(1)
Collection Changes from .NET 1.1 to .NET 2.0
361(1)
Collections and List Guidance
361(3)
Summary
364(1)
Data Binding in ASP.NET 2.0
365(74)
Data Source Controls
365(20)
SqIDataSource Control
368(11)
AccessDataSource Control
379(1)
XmlDataSource Control
379(1)
ObjectDataSource Control
380(5)
SiteMapDataSource Control
385(1)
Configuring Data Source Control Caching
385(1)
Storing Connection Information
386(3)
Using Bound List Controls with Data Source Controls
389(38)
GridView
389(16)
Editing GridView Row Data
405(7)
Deleting GridView Data
412(3)
DetailsView
415(5)
Inserting, Updating, and Deleting Data Using DetailsView
420(3)
FormView
423(4)
Other Databound Controls
427(2)
DropDownList, ListBox, RadioButtonList, and CheckBoxList
427(1)
TreeView
428(1)
Ad Rotator
428(1)
Menu
429(1)
Inline Data-Binding Syntax
429(2)
Data-Binding Syntax Changes
430(1)
XML Data Binding
431(1)
Expressions and Expression Builders
431(6)
Summary
437(2)
Data Management with ADO.NET
439(72)
Basic ADO.NET Features
440(24)
Common ADO.NET Tasks
440(4)
Basic ADO.NET Namespaces and Classes
444(1)
Using the Connection Object
445(1)
Using the Command Object
446(1)
Using the DataReader Object
447(3)
Using Data Adapter
450(3)
Using Parameters
453(3)
Understanding DataSet and Data Table
456(5)
Using Oracle as Your Database with ASP.NET 2.0
461(3)
Newly Added Features in ADO.NET 2.0
464(45)
Bulk Loading of Data from a Variety of Sources
464(10)
Batch Processing Multiple Updates
474(7)
Multiple Active Result Sets
481(6)
Asynchronous Command Execution
487(22)
Asynchronous Connections
509(1)
Summary
509(2)
Working with XML
511(52)
The Basics of XML
512(7)
The XML InfoSet
514(1)
XSD--XML Schema Definition
515(1)
Editing XML and XML Schema in Visual Studio 2005
516(3)
XmlReader and XmlWriter
519(13)
Using Schema with XmlTextReader
522(2)
Including NameTable Optimization
524(2)
Retrieving .NET CLR Types from XML
526(1)
ReadSubtree and XmlSerialization
527(2)
Creating XML with XmlWriter
529(3)
Improvements for XmlReader and XmlWriter in 2.0
532(1)
XmlDocument and XPathDocument
532(4)
Problems with the DOM
532(1)
XPath, the XPathDocument, and XmlDocument
533(3)
DataSets
536(4)
Persisting DataSets to XML
536(1)
XmlDataDocument
537(3)
The XmlDataSource Control
540(4)
XSLT
544(6)
XslCompiledTransform
545(2)
XML Web Server Control
547(2)
XSLT Debugging
549(1)
Databases and XML
550(11)
For XML Auto
550(4)
SQL Server 2005 and the XML Data Type
554(7)
Summary
561(2)
Introduction to the Provider Model
563(38)
Understanding the Provider
564(1)
Bringing a Provider Model to ASP.NET 2.0
565(34)
Setting Up Your Provider to Work with Microsoft SQL Server 7.0, 2000, or 2005
567(7)
Membership Providers
574(4)
Role Providers
578(4)
The Personalization Provider
582(1)
The SiteMap Provider
583(2)
SessionState Providers
585(2)
Web Event Providers
587(8)
Configuration Providers
595(3)
The WebParts Provider
598(1)
Configuring Providers
599(1)
Summary
600(1)
Extending the Provider Model
601(36)
Providers Are One Tier in a Larger Architecture
601(1)
Modifying through Attribute-Based Programming
602(5)
Simpler Password Structures through the SqlMembershipProvider
603(3)
Stronger Password Structures through the SqlMembershipProvider
606(1)
Examining ProviderBase
607(2)
Building Your Own Providers
609(17)
Creating the CustomProviders Application
609(1)
Constructing the Class Skeleton Required
610(4)
Creating the XML User Data Store
614(1)
Defining the Provider Instance in the web.config File
615(1)
Not Implementing Methods and Properties of the MembershipProvider Class
616(1)
Implementing Methods and Properties of the MembershipProvider Class
617(8)
Using the XmlMembershipProvider for User Login
625(1)
Extending Pre-Existing Providers
626(9)
Limiting Role Capabilities with a New LimitedSqlRoleProvider Provider
627(4)
Using the New LimitedSqlRoleProvider Provider
631(4)
Summary
635(2)
Site Navigation
637(60)
XML-Based Site Maps
638(2)
SiteMapPath Server Control
640(6)
The PathSeparator Property
642(2)
The PathDirection Property
644(1)
The ParentLevelsDisplayed Property
644(1)
The ShowToolTips Property
645(1)
The SiteMapPath Control's Child Elements
645(1)
TreeView Server Control
646(21)
Identifying the TreeView Control's Built-In Styles
650(1)
Examining the Parts of the TreeView Control
650(1)
Binding the TreeView Control to an XML File
651(3)
Selecting Multiple Options in a TreeView
654(3)
Specifying Custom Icons in the TreeView Control
657(2)
Specifying Lines Used to Connect Nodes
659(2)
Working with the TreeView Control Programmatically
661(6)
Menu Server Control
667(10)
Applying Different Styles to the Menu Control
669(5)
Menu Events
674(1)
Binding the Menu Control to an XML File
675(2)
SiteMap Data Provider
677(3)
ShowStartingNode
677(1)
StartFromCurrentNode
678(1)
StartingNodeOffset
679(1)
StartingNodeUrl
680(1)
SiteMap API
680(3)
URL Mapping
683(1)
Sitemap Localization
684(4)
Structuring the Web.sitemap File for Localization
684(1)
Making Modifications to the Web.config File
685(1)
Creating Assembly Resource (.resx) Files
686(1)
Testing the Results
687(1)
Security Trimming
688(5)
Setting Up Role Management for Administrators
688(2)
Setting Up the Administrators' Section
690(1)
Enabling Security Trimming
691(2)
Nesting SiteMap Files
693(2)
Summary
695(2)
Personalization
697(34)
The Personalization Model
697(2)
Creating Personalization Properties
699(10)
Adding a Simple Personalization Property
699(1)
Using Personalization Properties
700(4)
Adding a Group of Personalization Properties
704(1)
Using Grouped Personalization Properties
705(1)
Defining Types for Personalization Properties
705(1)
Using Custom Types
706(3)
Providing Default Values
709(1)
Making Personalization Properties Read-Only
709(1)
Anonymous Personalization
709(6)
Enabling Anonymous Identification of the End User
709(4)
Working with Anonymous Identification Events
713(1)
Anonymous Options for Personalization Properties
713(1)
Warnings about Anonymous User Profile Storage
714(1)
Programmatic Access to Personalization
715(4)
Migrating Anonymous Users
715(2)
Personalizing Profiles
717(1)
Determining Whether to Continue with Automatic Saves
718(1)
Personalization Providers
719(4)
Working with SQL Server Express Edition
719(2)
Working with Microsoft's SQL Server 7.0/2000/2005
721(2)
Using Multiple Providers
723(1)
Managing Application Profiles
723(7)
Properties of the ProfileManger Class
724(1)
Methods of the ProfileManager Class
724(1)
Building the ProfileManager.aspx Page
725(3)
Examining the Code of ProfileManager.aspx Page
728(2)
Running the ProfileManager.aspx Page
730(1)
Summary
730(1)
Membership and Role Management
731(56)
Authentication
732(1)
Authorization
732(1)
ASP.NET 2.0 Authentication
732(36)
Setting Up Your Web Site for Membership
732(3)
Adding Users
735(15)
Asking for Credentials
750(8)
Working with Authenticated Users
758(3)
Showing the Number of Users Online
761(1)
Dealing with Passwords
762(6)
ASP.NET 2.0 Authorization
768(15)
Using the LoginView Server Control
768(2)
Setting Up Your Web Site for Role Management
770(4)
Adding and Retrieving Application Roles
774(2)
Deleting Roles
776(1)
Adding Users to Roles
777(1)
Getting All the Users of a Particular Role
777(2)
Getting All the Roles of a Particular User
779(1)
Removing Users from Roles
780(1)
Checking Users in Roles
781(1)
Understanding How Roles Are Cached
782(1)
Using the Web Site Administration Tool
783(1)
Public Methods of the Membership API
784(1)
Public Methods of the Roles API
784(1)
Summary
785(2)
Portal Frameworks and Web Parts
787(48)
Introducing Web Parts
788(1)
Building Dynamic and Modular Web Sites
789(26)
Introducing the WebPartManager Control
790(1)
Working with Zone Layouts
790(4)
Understanding the WebPartZone Control
794(3)
Allowing the User to Change the Mode of the Page
797(11)
Modifying Zones
808(7)
Working with Classes in the Portal Framework
815(3)
Creating Custom Web Parts
818(6)
Connecting Web Parts
824(10)
Building the Provider Web Part
825(3)
Building the Consumer Web Part
828(2)
Connecting Web Parts on an ASP.NET Page
830(3)
Understanding the Difficulties in Dealing with Master Pages When Connecting Web Parts
833(1)
Summary
834(1)
Security
835(36)
Authentication and Authorization
836(1)
Applying Authentication Measures
836(19)
The <authentication> Node
837(1)
Windows-Based Authentication
838(7)
Forms-Based Authentication
845(10)
Passport Authentication
855(1)
Authenticating Specific Files and Folders
855(1)
Programmatic Authorization
856(6)
Working with User.Identity
857(1)
Working with User.IsInrole()
858(1)
Pulling More Information with WindowsIdentity
859(3)
Identity and Impersonation
862(3)
Securing Through IIS
865(4)
IP Address and Domain Name Restrictions
865(1)
Working with File Extensions
866(2)
Using the New ASP.NET MMC Snap-In
868(1)
Summary
869(2)
State Management
871(36)
What Are Your Choices?
872(2)
Understanding the Session Object in ASP.NET 2.0
874(22)
Sessions and the Event Model
874(2)
Configuring Session State Management
876(1)
In-Process Session State
877(7)
Out-of-Process Session State
884(6)
SQL-Backed Session State
890(3)
Extending Session State with Other Providers
893(1)
Cookieless Session State
894(1)
Choosing the Correct Way to Maintain State
895(1)
The Application Object
896(1)
QueryStrings
896(1)
Cookies
897(1)
Post Backs and Cross-Page PostBacks
897(3)
Hidden Fields, ViewState, and ControlState
900(4)
Using HttpContext.Current.Items for Very Short-Term Storage
904(1)
Summary
905(2)
Caching
907(30)
Caching
907(9)
Output Caching
908(2)
Partial Page (UserControl) Caching
910(1)
Post-Cache Substitution
911(2)
HttpCachePolicy and Client-Side Caching
913(3)
Caching Programmatically
916(6)
Data Caching Using the Cache Object
916(1)
Cache Dependencies
916(6)
Using the SQL Server Cache Dependency
922(6)
Enabling Databases for SQL Server Cache Invalidation
923(1)
Enabling Tables for SQL Server Cache Invalidation
924(1)
Looking at SQL Server
924(1)
Looking at the Tables That Are Enabled
925(1)
Disabling a Table for SQL Server Cache Invalidation
926(1)
Disabling a Database for SQL Server Cache Invalidation
926(1)
SQL Server 2005 Cache Invalidation
927(1)
Configuring Your ASP.NET Application
928(1)
Testing SQL Server Cache Invalidation
929(7)
Adding More Than One Table to a Page
931(1)
Attaching SQL Server Cache Dependencies to the Request Object
932(1)
Attaching SQL Server Cache Dependencies to the Cache Object
932(4)
Summary
936(1)
Debugging and Error Handling Techniques
937(34)
Design-Time Support
937(4)
Syntax Notifications
938(2)
Immediate and Command Window
940(1)
Task List
940(1)
Tracing
941(15)
System.Diagnostics.Trace and ASP.NET's Page.Trace
942(1)
Page-Level Tracing
942(1)
Application Tracing
942(1)
Viewing Trace Data
943(3)
Tracing from Components
946(2)
Trace Forwarding
948(1)
TraceListeners
948(4)
Diagnostic Switches
952(2)
Web Events
954(2)
Debugging
956(9)
What's Required
956(1)
IIS versus ASP.NET Development Server
957(1)
Starting a Debugging Session
958(3)
New Tools to Help You with Debugging
961(3)
SQL Stored Proc Debugging
964(1)
Exception and Error Handling
965(4)
Handling Exceptions on a Page
966(1)
Handling Application Exceptions
966(1)
Http Status Codes
967(2)
Summary
969(2)
File I/O and Streams
971(52)
Working with Drives, Directories, and Files
972(26)
The DriveInfo Class
972(4)
The Directory and DirectoryInfo Classes
976(6)
File and FileInfo
982(5)
Working with Paths
987(4)
File and Directory Properties, Attributes, and Access Control Lists
991(7)
Reading and Writing Files
998(15)
Streams
999(4)
Readers and Writers
1003(5)
Compressing Streams
1008(5)
Working with Serial Ports
1013(1)
Network Communications
1014(8)
WebRequest and WebResponse
1014(7)
Sending Mail
1021(1)
Summary
1022(1)
User and Server Controls
1023(78)
User Controls
1024(9)
Creating User Controls
1024(2)
Interacting with User Controls
1026(2)
Loading User Controls Dynamically
1028(5)
Server Controls
1033(67)
Project Setup
1034(4)
Control Attributes
1038(2)
Control Rendering
1040(4)
Adding Tag Attributes
1044(2)
Styling HTML
1046(2)
Themes and Skins
1048(1)
Adding Client-Side Features
1049(9)
Detecting and Reacting to Browser Capabilities
1058(3)
Using ViewState
1061(5)
Raising PostBack Events
1066(4)
Handling PostBack Data
1070(2)
Composite Controls
1072(2)
Templated Controls
1074(7)
Creating Control Design-Time Experiences
1081(19)
Summary
1100(1)
Modules and Handlers
1101(20)
Processing HTTP Requests
1101(1)
HttpModules
1102(18)
HttpHandlers
1113(7)
Summary
1120(1)
Using Business Objects
1121(28)
Using Business Objects in ASP.NET 2.0
1121(5)
Creating Precompiled .NET Business Objects
1122(2)
Using Precompiled Business Objects in Your ASP.NET Applications
1124(2)
COM Interop: Using COM within .NET
1126(11)
The Runtime Callable Wrapper
1126(2)
Using COM Objects in ASP.NET Code
1128(4)
Error Handling
1132(3)
Deploying COM Components with .NET Applications
1135(2)
Using .NET from Unmanaged Code
1137(10)
The COM-Callable Wrapper
1137(3)
Using .NET Components within COM Objects
1140(3)
Early versus Late Binding
1143(1)
Error Handling
1144(2)
Deploying .NET Components with COM Applications
1146(1)
Summary
1147(2)
Mobile Development
1149(46)
Creating a NEW ASP.NET Mobile Web Application
1149(4)
Views of an ASP.NET Mobile Web Form
1152(1)
Using Control Containers
1153(2)
The Form Control
1154(1)
The Panel Control
1154(1)
Using StyleSheets
1155(2)
Creating a Single StyleSheet Control for All Mobile Web Forms
1157(1)
Using ASP.NET Mobile Controls
1157(22)
The AdRotator Control
1157(3)
The Calendar Control
1160(1)
The Label Control
1161(1)
The TextBox Control
1162(2)
The TextView Control
1164(2)
The Command Control
1166(1)
The Image Control
1166(1)
The PhoneCall Control
1167(2)
The Link Control
1169(2)
The List Control
1171(4)
The ObjectList Control
1175(1)
The SelectionList Control
1175(4)
Using Validation Controls
1179(2)
Navigating between Mobile Web Forms
1181(1)
The Mobile Web User Control
1182(4)
Using Emulators
1186(1)
Understanding Devices Filters
1187(2)
State Management in ASP.NET Mobile Applications
1189(4)
ViewState in Mobile Web Controls
1189(1)
Managing Session State
1190(1)
Hidden Fields
1190(3)
Summary
1193(2)
Building and Consuming XML Web Services
1195(36)
Communication Between Disparate Systems
1195(2)
Building a Simple XML Web Service
1197(9)
The WebService Page Directive
1198(1)
Looking at the Base Web Service Class File
1199(1)
Exposing Custom Datasets as SOAP
1200(3)
The XML Web Service Interface
1203(3)
Consuming a Simple XML Web Service
1206(5)
Adding a Web Reference
1207(1)
Invoking the Web Service from the Client Application
1208(3)
Transport Protocols for Web Services
1211(5)
HTTP-GET
1213(2)
HTTP-POST
1215(1)
SOAP
1216(1)
Overloading WebMethods
1216(4)
Caching Web Service Responses
1220(1)
SOAP Headers
1220(7)
Building a Web Service with SOAP Headers
1221(2)
Consuming a Web Service Using SOAP Headers
1223(2)
Requesting Web Services Using SOAP 1.2
1225(2)
Consuming Web Services Asynchronously
1227(3)
Summary
1230(1)
Localization
1231(26)
Cultures and Regions
1231(16)
Understanding Culture Types
1232(1)
The ASP.NET Threads
1233(3)
Server-Side Culture Declarations
1236(2)
Client-Side Culture Declarations
1238(1)
Translating Values and Behaviors
1239(8)
ASP.NET 2.0 Resource Files
1247(8)
Making Use of Local Resources
1247(6)
Making Use of Global Resources
1253(2)
Looking at the Resource Editor
1255(1)
Summary
1256(1)
Configuration
1257(46)
Configuration Overview
1258(6)
Server Configuration Files
1259(2)
Application Configuration File
1261(1)
How Configuration Settings Are Applied
1262(1)
Detecting Configuration File Changes
1263(1)
Configuration File Format
1263(1)
Common Configuration Settings
1264(38)
Connecting Strings
1264(1)
Configuring Session State
1265(4)
Compilation Configuration
1269(2)
Browser Capabilities
1271(2)
Custom Errors
1273(2)
Authentication
1275(3)
Anonymous Identity
1278(1)
Authorization
1278(2)
Locking-Down Configuration Settings
1280(1)
ASP.NET Page Configuration
1281(2)
Include Files
1283(1)
Configuring ASP.NET Runtime Settings
1284(2)
Configuring the ASP.NET Worker Process
1286(3)
Storing Application-Specific Settings
1289(1)
Programming Configuration Files
1289(7)
Protecting Configuration Settings
1296(5)
Editing Configuration Files
1301(1)
Summary
1302(1)
Instrumentation
1303(38)
Working with the Event Log
1303(6)
Reading from the Event Log
1304(2)
Writing to the Event Logs
1306(3)
Using Performance Counters
1309(8)
Viewing Performance Counters through an Administration Tool
1310(2)
Building a Browser-Based Administrative Tool
1312(5)
Application Tracing
1317(1)
Understanding Health Monitoring
1318(23)
The Health Monitoring Provider Model
1319(2)
Health Monitoring Configuration
1321(7)
Writing Events via Configuration: Running the Example
1328(1)
Routing Events to SQL Server
1329(3)
Buffering Web Events
1332(2)
E-mailing Web Events
1334(6)
Summary
1340(1)
Administration and Management
1341(34)
The ASP.NET Web Site Administration Tool
1341(21)
The Home Tab
1343(1)
The Security Tab
1343(13)
The Application Tab
1356(5)
The Provider Tab
1361(1)
The MMC ASP.NET Snap-In
1362(11)
General
1365(1)
Custom Errors
1366(1)
Authorization
1367(1)
Authentication
1368(2)
Application
1370(1)
State Management
1371(1)
Locations
1372(1)
Summary
1373(2)
Packaging and Deploying ASP.NET Applications
1375(36)
Deployment Pieces
1375(1)
Steps to Take before Deploying
1376(1)
Methods of Deploying Web Applications
1377(18)
Using XCopy
1377(3)
Using the VS Copy Web Site Option
1380(4)
Deploying a Precompiled Web Application
1384(2)
Building an Installer Program
1386(9)
Looking More Closely at Installer Options
1395(15)
Working with the Deployment Project Properties
1396(4)
The File System Editor
1400(4)
The Registry Editor
1404(1)
The File Types Editor
1405(1)
The User Interface Editor
1406(2)
The Custom Actions Editor
1408(1)
The Launch Conditions Editor
1409(1)
Summary
1410(1)
Appendix A: Visual Basic 8.0 and C# 2.0 Language Enhancements
1411(22)
Overview of the Changes
1411(1)
Generics
1412(6)
Generic Collections
1412(4)
Generic Methods
1416(2)
Iterators
1418(2)
Anonymous Methods
1420(1)
Operator Overloading
1421(1)
Global Namespace Qualifiers
1422(1)
Partial Classes
1423(2)
Visual Basic XML Documentation
1425(1)
Static Classes
1426(1)
Property Accessors
1426(1)
Unsigned Types
1427(1)
Default Instances
1428(1)
New Visual Basic Keywords
1428(5)
Continue
1429(1)
Using
1430(1)
My
1430(2)
IsNot
1432(1)
TryCast
1432(1)
Appendix B: Migrating ASP.NET 1.x Projects
1433(12)
Migrating Is Not Difficult
1433(2)
Running Multiple Versions of the Framework Side by Side
1434(1)
Upgrading Your ASP.NET 1.x Applications to 2.0
1434(1)
When Mixing Versions --- Forms Authentication
1435(1)
Upgrading --- New Reserved Folders
1436(1)
ASP.NET 2.0 Pages Come As XHTML
1437(2)
No Hard-Coded .js Files in ASP.NET 2.0
1439(1)
Converting ASP.NET 1.x Applications in Visual Studio 2005
1439(6)
Appendix C: Using Atlas
1445(16)
Looking at the XmlHttpRequest Object
1445(2)
Installing Atlas
1447(4)
Atlas --- A Basic Example
1451(8)
Summary
1459(2)
Appendix D: ASP.NET Online Resources
1461(2)
Author Blogs
1461(1)
ASP.NET Influential Blogs
1461(1)
WebSites
1462(1)
Index 1463

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program