Preface.
1. Getting Started
Hello World
Creating a New Web Site
Creating HelloWorld
Making the HelloWorld Web Site Interactive
What You Just Did
Summary
Brain Builder
Quiz
Exercise
2. Building Web Applications
Mastering Web Site Fundamentals
The Page
Controls
Code-Behind Files
Events and Postbacks
Synchronous and Asynchronous Postbacks
The Page Load event and synchronous postback
Adding asynchronous postbacks
Using Controls
Organizing the Properties Window
Finding properties with IntelliSense
Basic Controls
Creating Tables
Setting Properties
Selection Controls
Panels
List Selection Controls
Adding items with the Item editor
Adding items in Source view
More Selection Controls
Using Selections to Display Text
Images
Links
LinkButtons
Source Code
Summary
Brain Builder
Quiz
Exercises
3. Snappier Web Sites with AJAX
Take a Walk on the Client Side
ScriptManager and UpdatePanel
Controlling Browser History
Extending Controls with the Control Toolkit
TextBoxWaterMarkExtender
PopupControlExtender
CollapsiblePanelExtender
Source Code Listing
Summary
Brain Builder
Quiz
Exercises
4. Saving and Retrieving Data
Getting Data from a Database
Binding Data Controls
Create a Sample Web Page
Using a DataSource Control
Pay No Attention to That Man Behind the Curtain
GridView Control
Auto-Generated Code
Adding Insert, Update, and Delete Statements
Displaying and Updating the Data
Take It for a Spin
Modifying the Grid Based on Conditions
Selecting Data from the GridView
Passing Parameters to the SELECT Query
LINQ
Creating the Object Model
Using the Object Model
Editing Data in LINQ
ASP.NET Dynamic Data
Source Code Listings
Summary
Brain Builder
Quiz
Exercises
5. Validation
Validation Controls
The RequiredFieldValidator
The Summary Control
The Compare Validator
Checking the Input Type
Comparing to Another Control
Range Checking
Regular Expressions
Custom Validation
Summary
Brain Builder
Quiz
Exercises
6. Style Sheets, Master Pages, and Navigation
Styles and Style Sheets
Cascading Styles
Inline Styles
Pros and cons
Document-Level Styles
Pros and cons
External Style Sheets
Master Pages
Creating a Master Page
Adding Content Pages
Using Nested Master Pages
Changing the Master Page at Runtime
Navigation
Buttons and HyperLinks
Menus and Bread Crumbs
Site Maps
Using Sitemaps
TreeView
Customizing the look and feel of the TreeView
Replacing the TreeView with a menu control
Accessing site map nodes programmatically
Bread Crumbs
Summary
Brain Builder
Quiz
Exercises
7. State and Life Cycle..
Page Life Cycle
State
View State
Session State
Application State
Summary
Brain Builder
Quiz
Exercises
8. Errors, Exceptions, and Bugs, Oh Myl
Creating the Sample Application
Tracing
Page-Level Tracing
Inserting into the Trace Log
Debugging
The Debug Toolbar
Breakpoints
Setting a breakpoint
Breakpoints window
Breakpoint properties
Breakpoint icons
Stepping Through Code
Examining Variables and Objects
Debug Windows
Immediate window
Locals window
Watch window
Call Stack window
Error Handling
Unhandled Errors
Application-Wide Error Pages
Page-Specific Error Pages
Summary
Brain Builder
Quiz
Exercises
9. Security
Forms-Based Security
Creating Users with the WAT
Managing Users Programmatically
Creating User Accounts
Creating a Welcome Page
Creating a Login Page
Roles
Restricting Access
Testing for Login Status
Testing for Role-Based Authentication Membership
Summary
Brain Builder
Quiz
Exercises
10. Personalization
Profiles
Simple Data Types
Complex Data Types
Anonymous Personalization
Adding an Anonymous Profile
Migrating Anonymous Data to an Actual Users Record
Themes and Skins
Create the Test Site
Organize Site Themes and Skins
Enable Themes and Skins
Specify Themes for Your Page
Using Named Skins
Summary
Brain Builder
Quiz
Exercises
11. Putting It All Together
Getting Started
Adding Styles
Using Master Pages
Setting Up Roles and Users
Logging In
Navigation
Products Page
Adding AJAX
Cart Page
Purchase Page
Confirm Page
Custom Error Pages
Summary
Source Code Listings
Cart Page
Confirm Page
Home Page
Login Page
Master Page
Products Page
Purchase Page
Web.con fig
A. Installing the Stuff Youll Need
B. Copying a Web Site
C. Publishing Your Web Site
Database Support
Your Domain Name
Picking a Hosting Site
Setting Up the Account
Uploading the Web Site Files
Uploading Data
Creating the script
Logging Into the hosting database and running the script
Updating the Connection Strings
Notes and Tips
Running Web Server Software
Security
Configuring the Firewall
Hosting a Web Site Under IIS
IIS 7
IIS 6
Setting Up the Domain Name
D. Answers to Quizzes and Exercises
Index