Home > Store

Microsoft Expression Web Developer's Guide to ASP.NET 3.5, The: Learn to create ASP.NET applications using Visual Web Developer 2008 Adobe Reader

Register your product to gain access to bonus material or receive a coupon.

Microsoft Expression Web Developer's Guide to ASP.NET 3.5, The: Learn to create ASP.NET applications using Visual Web Developer 2008 Adobe Reader

eBook (Adobe DRM)

  • Sorry, this book is no longer in print.
  • About Adobe DRM eBooks
  • This eBook requires the free Adobe® Digital Editions software.

    Before downloading this DRM-encrypted PDF, be sure to:


    • Install the free Adobe Digital Editions software on your machine. Adobe Digital Editions only works on Macintosh and Windows, and requires the Adobe Flash Player. Please see the official system requirements.
    • Authorize your copy of Adobe Digital Editions using your Adobe ID (select AdobeID as the eBook vendor). If you don't already have an Adobe ID, you can create one here.
Not for Sale

Description

  • Copyright 2008
  • Edition: 1st
  • eBook (Adobe DRM)
  • ISBN-10: 0-7686-7657-6
  • ISBN-13: 978-0-7686-7657-0

“This book is a great reference for web designers new to ASP.NET who are looking to jump start their development with

Visual Web Developer 2008.”

Mikhail Arkhipov

Principal Development Manager – Web Development Tools

Microsoft Corporation

Expression Web introduced ASP.NET to a new group of web developers. This book is designed to help you start using ASP.NET right away to add powerful new features to your website. Don’t worry, you won’t have to learn a lot of programming; instead, you’ll create an ASP.NET application from start to finish using Visual Web Developer 2008, while writing only a very small amount of actual programming code.

DETAILED INFORMATION ON HOW TO…

     •    Create and work with websites in Visual Web Developer 2008

     •    Use the different compilation and code models in ASP.NET

     •    Configure ASP.NET security and other settings

     •    Use ASP.NET master pages and user controls

     •    Take advantage of ASP.NET membership features for a password-protected website

     •    Use form validation in ASP.NET

     •    Use CSS, skins, and themes

     •    Access, edit, and add data to a database using ASP.NET

     •    Send email using ASP.NET

     •    Use Ajax and ASP.NET Web services

     •    Debug and troubleshoot ASP.NET

          . . . and much more!

Sample Content

Table of Contents

Introduction

Part I Understanding ASP.NET Architecture

Chapter 1 Installing and Configuring ASP.NET

Understanding the .NET Framework and ASP.NET

Configuring ASP.NET

    Configuring ASP.NET on IIS 5.1 or IIS 6.0

    Configuring ASP.NET on IIS 7

    Using the ASP.NET Development Server

Troubleshooting IIS

Chapter 2 ASP.NET Code Models

Understanding ASP.NET Web Form Code

    ASP.NET Directives

    ASP.NET Design-Time Code

Server-Side Code Models

    Inline Server-Side Code

    Code-Behind Server-Side Code

Switching Server-Side Code Models

    Moving from Code-Behind to Inline Code

    Moving from Inline Code to Code-Behind

Choosing a Code Model

Chapter 3 ASP.NET Compilation Models

ASP.NET Compilation

    The Web Application Compilation Model

    The Website Compilation Model

    The Precompilation Model

Automating aspnet_compiler.exe in Visual Web Developer Express Edition

Chapter 4 ASP.NET Events and the Page Lifecycle

An Event-Driven Architecture

Application and Session Events

    Application Events and the Application Lifecycle

    Session Events

Page Events and the Page Lifecycle

    The Importance of the Lifecycle

Investigating the Page Lifecycle

Chapter 5 ASP.NET State Management

A Connectionless Environment

Understanding Application Variables

    Setting an Application Variable

    Retrieving an Application Variable

Understanding Session Variables

Using ASP.NET Caching

    Page Output Caching

    Fragment Caching

    The Cache API

    Retrieving Items from Cache

ASP.NET Viewstate and Control State

Chapter 6 ASP.NET Configuration and Performance

Overview of ASP.NET Configuration

ASP.NET Configuration Files

    Machine Configuration Files

    Application Configuration Files

The Web Site Administration Tool

    Security Tab

    Application Tab

    Provider Tab

ASP.NET Configuration in IIS

    IIS 5.1 and IIS 6

    IIS 7

Encrypting Information in the Configuration Files

Chapter 7 Basic ASP.NET Security

Authentication and Authorization

Configuring Windows Authentication

    Disabling Anonymous Browsing in IIS 5 and 6

    Disabling Anonymous Browsing in IIS 7 (Windows Vista)

Understanding Forms Authentication

Configuring Forms Authentication

    Configuring Forms Authentication with the ASP.NET Web Site Administration Tool

    Configuring Forms Authentication with the ASP.NET Configuration Settings Dialog (IIS 5 or 6 Only)

    Configuring Forms Authentication with the IIS Manager (IIS 7 Only)

Other Forms Authentication Settings

ASP.NET Authorization

    Configuring Authorization with the ASP.NET Configuration Settings Dialog (IIS 5 and 6 Only)

    Configuring Authorization with the IIS Manager (IIS 7 Only)

Why Not Windows Authentication?

Part II Creating ASP.NET Applications and Web Forms

Chapter 8 Creating Websites

The Structure of an ASP.NET Website

    Special Folders in an ASP.NET Application

Creating a Web Application in Visual Web Developer

    File System

    Local IIS

    FTP

    Remote Site

Start Options in Visual Web Developer

    Start Actions

    Server Options

Chapter 9 Creating ASP.NET Web Forms

Creating Web Forms in Visual Web Developer

    Creating ASP.NET Web Forms

    Other File Types Available in Visual Web Developer

Creating Web Pages in Expression Web

Choosing the Right Tool for ASP.NET Application Development

    Using the Code-Behind Model

    Using the Inline Code Model

A Suggested Workflow

    Use Either Tool to Create the Website

    Use Visual Web Developer to Create Pages

    Do Design Work in Either Tool

    Use Either Tool to Configure ASP.NET Controls

    Use Either Tool to Preview Your Pages

    Test ASP.NET Code in Visual Web Developer

    Publish Your Website with Expression Web

Part III Master Pages and User Controls

Chapter 10 Creating and Using Master Pages

An Introduction to Master Pages

Structure of Master Pages and Content Pages

Creating a Master Page

    Adding Content to the Master Page

    Formatting the Master Page

Configuring Navigation Controls

    Creating a Sitemap File

    Configuring the Menu to Use the Sitemap File

Connecting a Page to the Master Page

    Connecting a New Page

    Connecting an Existing Page

Checkpoint

Chapter 11 Creating and Using User Controls

What Are User Controls?

Creating a User Control

Adding User Controls to a Page

    Creating a User Control

    Editing a User Control

Converting a Page to a User Control

Checkpoint

Part IVASP.NET Membership

Chapter 12 Configuring a Membership Database

An Introduction to ASP.NET Membership

    The Membership Provider

Using the Default Membership Database

Using SQL Server 2000 or SQL Server 2005 for Membership

    Configuring the Database

    Configuring the Provider for the New Database

    Configuring the Connection String in IIS 5 or IIS 6

    Configuring the Connection String in IIS 7

    Configuring the Connection String in a Disk-based Application

Checkpoint

Chapter 13 Adding and Managing Users and Roles

Users and Roles

Configuring Authentication

Adding New Users

Enabling and Adding Roles

    Enabling Roles

    Creating Roles

    Adding a User to a Role

Configuring Access Rules

What Happens Under the Hood?

    Configuring Authentication

    Enabling Roles

    Creating Access Rules

Checkpoint

Chapter 14 Adding and Configuring Login and User Management Pages

Configuring the Login Control

    Configuring the Appearance of the Login Control

    Configuring the Behavior of the Login Control

Using the LoginView Control

Creating Accounts Using the CreateUserWizard Control

    Adding the Create User Page

    Adding a Confirmation Page

Resetting Lost Passwords

    Creating the Password Recovery Page

    Configuring ASP.NET for Sending Email

Changing Passwords

A Few Finishing Touches

    Adding a Link to Reset Password

    Adding a Change Password Link

    Fixing the Logo Graphic on the Master Page

Checkpoint

Part VASP.NET Forms and Validation

Chapter 15 Creating Forms Using ASP.NET

Introduction to ASP.NET Forms

Adding and Configuring ASP.NET Form Controls

    Required Elements for the Contact Us Page

    Adding Controls to the Contact Us Page

    Configuring the Topics DropDownList Control

Processing ASP.NET Forms

    The AutoPostBack Property

    The Button Control

    The IsPostBack Property

Displaying a Form Confirmation

    Placing the Form into a Panel

    Adding a Confirmation Message

    Adding Server-Side Code

Checkpoint

Chapter 16 Adding Form Field Validation Using ASP.NET

The Necessity of Form Validation

ASP.NET Validation Controls

    RequiredFieldValidator Control

    RangeValidator

    RegularExpressionValidator Control

    CompareValidator Control

    CustomValidator Control

    ValidationSummary Control

Common Validation Control Properties

    The Text Property

    The Display Property

    The ErrorMessage Property

    The ControlToValidate Property

    The EnableClientScript Property

    The SetFocusOnError Property

    The ValidationGroup Property

Adding and Configuring ASP.NET Validation Controls

Checkpoint

Part VIStyling Web Forms in Visual Web Developer 2008

Chapter 17 Creating and Managing CSS Styles

An Introduction to CSS

    Basic CSS Rules

    External Style Sheets

    Embedded Style Sheets

    Inline CSS Styles

Exploring CSS Classes and IDs

    CSS Classes

    CSS IDs

Using the Style Builder Dialog to Create Styles

    Creating a Simple Style

    Creating a New CSS Class

Using the Style Application Toolbar

    Using the Style Application Toolbar to Apply Formatting

    Applying Formatting to Existing Styles

Managing CSS Styles

    The Manage Styles Pane

    Using the Manage Styles Pane to Add New Styles

    Using the Manage Styles Pane to Modify Styles

Checkpoint

Chapter 18 Applying CSS to Web Forms

Using the Apply Styles Pane

    Applying a Style

    Removing a Previously Applied CSS Class, CSS ID, or Inline Style

Using the CSS Properties Pane

    Examining CSS Styles

    Applying CSS Styles

Checkpoint

Chapter 19 Using ASP.NET Themes and Skins

Introduction to ASP.NET Themes

    Makeup of a Theme

    Global Themes and Page Themes

    Skin Files

Creating a Theme

    Creating the Folder Structure

    Creating a Skin File

    Generating Formatting Code for Controls

    Transferring Formatting Code to the Skin File

Applying a Theme

Default Skins and Named Skins

Using a Theme with CSS Files

Checkpoint

Part VIIData Access with ASP.NET

Chapter 20 ASP.NET Data Controls

Accessing Data in ASP.NET 3.5

ASP.NET Data Source Controls

    SqlDataSource Control

    AccessDataSource Control

    LinqDataSource Control

    ObjectDataSource Control

    XmlDataSource Control

    SiteMapDataSource Control

Configuring a Data Source Control

Other ASP.NET Data Controls

    GridView Control

    DataList Control

    DetailsView Control

    FormView Control

    ListView Control

    Repeater Control

    DataPager Control

Checkpoint

Chapter 21 Displaying Data from a Database

Configuring the Data Source

    Adding an AccessDataSource Control

    Configuring the AccessDataSource Control

    Ordering Data

    Filtering Data

Using Data Controls to Display Data

    Adding a GridView Control

    Adding Paging and Sorting Features

Creating a Master/Detail View

    Configuring the GridView Control

    Adding a Data Source Control for the DetailsView

    Adding and Configuring the DetailsView Control

Checkpoint

Chapter 22 Adding, Editing, and Deleting Records

Creating the Editing Interface

    Adding and Configuring a GridView Control

    Adding and Configuring a New Data Source

    Adding and Configuring the FormView Control

Configuring the Functionality of the Editor

    Adding New Records

    Editing Records

    Deleting Records

Modifying Templates

    Modifying the InsertItemTemplate

    Modifying the EmptyDataTemplate

Checkpoint

Part VIIISending Email with ASP.NET

Chapter 23 Configuring ASP.NET for Email

How ASP.NET Sends Mail

    The System.Net.SmtpClient Class

    The System.Net.MailMessage Class

Modifying the Configuration File for Email

    Adding Email Configuration to the web.config File

    Using the Web Site Administration Tool

Checkpoint

Chapter 24 Sending Form Results to Email

Adding Server-Side Code to Send Email

    Reviewing the Contact Form

    Adding the Code

    Explaining the Code

Sending HTML Emails

Sending Emails with Attachments

Checkpoint

Part IXAjax and Web Services

Chapter 25 Creating and Testing an ASP.NET Web Service

An Explanation of ASP.NET Web Services

    The Structure of a Web Service

    The WSDL Document

Creating an ASP.NET Web Service

Invoking a Web Service Directly

Creating a Dataset for Use with a Web Service

    Creating the Dataset

    Connecting to the Database

    Adding a Parameter

     Using a Dataset with a Web Service

    Testing the Web Service

Using a Web Service in a Web Form

    Adding a Reference to the Web Service

    Adding a Data Source for the DropDownList Control

    Completing the Configuration of the Web Form

Checkpoint

Chapter 26 Adding Ajax Functionality

What Is Ajax?

Microsoft’s ASP.NET AJAX

    Microsoft AJAX Library

    Microsoft ASP.NET AJAX Extensions

    Microsoft AJAX ASP.NET Control Toolkit

Adding Ajax Functionality to a Web Form

    Targeting the .NET Framework 3.5

    Adding a ScriptManager Control

    Adding an UpdatePanel Control

Using the AJAX Library

    Adding Controls to the Web Form

    Creating the Client Library

    Adding the Client Script to the ScriptManagerProxy

Checkpoint

Part XDebugging and Troubleshooting ASP.NET

Chapter 27 Debugging ASP.NET Applications

The Basics of Debugging

Enabling and Configuring Debugging for an ASP.NET Application

    Enabling Debugging

    Configuring Debugging

Debugging Server-Side Code

    Setting a Breakpoint

Examining the State of an Application

    IntelliSense

    The Locals Window

    The Watch Window

    The Immediate Window

Debugging Client-Side Scripts

Using the Error List to Locate Application Errors

Checkpoint

Chapter 28 Handling Errors in an ASP.NET Application

Exceptions and the .NET Framework

    Exception-Handling Blocks

    Bubbling Exceptions

Implementing Structured Exception Handling

    Modifying the btnSend_Click Method

    Adding a Panel to Display Errors

Throwing Exceptions

Adding a Global Exception Handler

Using the <customErrors> Element

    <error> Elements

Checkpoint

Chapter 29 ASP.NET Tracing and Other Troubleshooting Techniques

ASP.NET Tracing

    Enabling Tracing

Analyzing Trace Output

    Request Details

    Trace Information

    Control Tree

    Session State

    Application State

    Request Cookies Collection

    Response Cookies Collection

    Headers Collection

    Response Headers Collection

    Form Collection

    Querystring Collection

    Server Variables

ASP.NET Health Monitoring

    Configuring the Application for Health Monitoring

    Viewing Health Monitoring Logs

Monitoring the Network with Fiddler

Checkpoint

Part XIDeploying ASP.NET Applications

Chapter 30 Publishing an ASP.NET Application

Using the Copy Web Site Tool

    Connecting to a Remote Site

    Copying Websites with the Copy Web Site Feature

Special Considerations for Membership Websites

    Obtaining the Application Name from the Database

    Editing the web.config File

Wrapping Up

Appendix Application Settings in Visual Web Developer

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020