Asp.Net Contents

Introducing .NET

1 The .NET Framework.

The Evolution of Web Development

HTML and HTML Forms

Server-Side Programming

Client-Side Programming

The .NET Framework

C#, VB, and the .NET Languages

The Common Language Runtime

The .NET Class Library

Visual Studio

The Last Word

The C# Language

The .NET Languages

C# Language Basics

Case Sensitivity


Statement Termination


Variables and Data Types.

Assignment and Initializers

Strings and Escaped Characters



Variable Operations

Advanced Math

Type Conversions

Object-Based Manipulation

The String Type

The DateTime and TimeSpan Types

The Array Type

Conditional Logic

The if Statement

The switch Statement


The for Loop

The foreach Loop

The while loop



Method Overloading


The Last Word

Types, Objects, and Namespaces

The Basics About Classes

Static Members

A Simple Class

Building a Basic Class

Creating an Object

Adding Properties

Adding a Method

Adding a Constructor

Adding an Event

Testing the Product Class

Value Types and Reference Types

Assignment Operations

Equality Testing

Passing Parameters by Reference and by Value

Reviewing .NET Types

Understanding Namespaces and Assemblies

Using Namespaces

Importing Namespaces


Advanced Class Programming


Static Members

Casting Objects

Partial Classes


The Last Word

Developing ASP.NET Applications

Visual Studio

The Promise of Visual Studio

Creating Websites

Creating a New Web Application

Websites and Web Projects

The Hidden Solution Files

The Solution Explorer

Adding Web Forms

Migrating a Website from a Previous Version of Visual Studio

Designing a Web Page

Adding Web Controls

The Properties Window

The Anatomy of a Web Form

The Web Form Markup

The Page Directive

The Doctype

The Essentials of XHTML

Writing Code

The Code-Behind Class

Adding Event Handlers IntelliSense and Outlining

Visual Studio Debugging

The Visual Studio Web Server

Single-Step Debugging

Variable Watches The Last Word

Web Form Fundamentals

The Anatomy of an ASP.NET Application

ASP.NET File Types

ASP.NET Application Directories

Introducing Server Controls

HTML Server Controls

Converting an HTML Page to an ASP.NET Page

View State

The HTML Control Classes

Adding the Currency Converter Code

Event Handling

Behind the Scenes with the Currency Converter

Error Handling.

Improving the Currency Converter

Adding Multiple Currencies

Storing Information in the List

Adding Linked Images

Setting Styles

A Deeper Look at HTML Control Classes

HTML Control Events

Advanced Events with the HtmlInputImage Control

The HtmlControl Base Class

The HtmlContainerControl Class

The HtmlInputControl Class

The Page Class

Sending the User to a New Page

HTML Encoding

Application Events

The Global.asax File

Additional Application Event

ASP.NET Configuration

The web.config File

Nested Configuration

Storing Custom Settings in the web.config File

The Website Administration Tool (WAT)

The Last Word

Web Controls

Stepping Up to Web Controls

Basic Web Control Classes

The Web Control Tags

Web Control Classes

The WebControl Base Class






The Default Button

List Controls

Multiple-Select List Controls

The BulletedList Control

Table Controls

Web Control Events and AutoPostBack

How Postback Events Work

The Page Life Cycle

A Simple Web Page

Improving the Greeting Card Generator

Generating the Cards Automatically

The Last Word

State Management

The Problem of State

View State

The ViewState Collection

A View State Example

Making View State Secure

Retaining Member Variables

Storing Custom Objects

Transferring Information Between Pages

Cross-Page Posting

The Query String


A Cookie Example


Session State

Session Tracking

Using Session State

A Session State Example

Session State Configuration


Timeout Mode

Application State

An Overview of State Management Choices

The Last Word

Error Handling, Logging, and Tracing

Common Errors

Exception Handling

The Exception Class

The Exception Chain

Handling Exceptions

Catching Specific Exceptions

Nested Exception Handlers

Exception Handling in Action

Mastering Exceptions

Throwing Your Own Exceptions

Logging Exceptions

Viewing the Windows Event Logs

Writing to the Event Log

Custom Logs

A Custom Logging Class

Retrieving Log Information

Error Pages

Error Modes

Custom Error Pages

Page Tracing

Enabling Tracing

Tracing Information

Writing Trace Information

Application-Level Tracing

The Last Word

Deploying ASP.NET Applications

ASP.NET Applications and the Web Server

How Web Servers Work

The Virtual Directory

Web Application URLs

Web Farms

Internet Information Services (IIS)

The Many Faces of IIS

Installing IIS 5 (in Windows XP)

Installing IIS 6 (in Windows Server 2003)

Installing IIS 7 (in Windows Vista)

Installing IIS 7 (in Windows Server 2008)

Registering the ASP.NET File Mappings

Verifying That ASP.NET Is Correctly Installed

Managing Websites with IIS Manager

Creating a Virtual Directory

Configuring a Virtual Directory

Deploying a Simple Site

Web Applications and Components

Other Configuration Steps

Code Compilation

The ASP.NET Account

Deploying with Visual Studio

Creating a Virtual Directory for a New Project

Copying a Website

Publishing a Website

The Last Word

Building Better Web Forms Validation

Understanding Validation

The Validator Controls

Server-Side Validation

Client-Side Validation


The Validation Controls

A Simple Validation

Other Display Options

Manual Validation

Validating with Regular Expressions

A Validated Customer Form

Validation Groups

The Last Word

Rich Controls

The Calendar

Formatting the Calendar

Restricting Dates

The AdRotator

The Advertisement File

The AdRotator Class

Pages with Multiple Views

The MultiView Control

The Wizard Control

The Last Word

User Controls and Graphics

User Controls

Creating a Simple User Control

Independent User Controls

Integrated User Controls

User Control Events

Passing Information with Events

Dynamic Graphics

Basic Drawing

Drawing a Custom Image

Placing Custom Images Inside Web Pages

Image Format and Quality

The Last Word

Styles, Themes, and Master Pages


Style Types

Creating a Basic Inline Style

Creating a Style Sheet

Applying Style Sheet Rules


How Themes Work

Applying a Simple Theme

Handling Theme Conflicts

Creating Multiple Skins for the Same Control

More Advanced Skins

Master Page Basics

A Simple Master Page and Content Page

How Master Pages and Content Pages Are Connected

A Master Page with Multiple Content Regions

Default Content

Master Pages and Relative Paths

Advanced Master Pages

Table-Based Layouts

Code in a Master Page

Interacting with a Master Page Programmatically

The Last Word

Website Navigation Site Maps

Defining a Site Map

Seeing a Simple Site Map in Action

Binding an Ordinary Page to a Site Map

Binding a Master Page to a Site Map

Binding Portions of a Site Map

The SiteMap Class

Mapping URLs

The SiteMapPath Control

Customizing the SiteMapPath

Using SiteMapPath Styles and Templates

Adding Custom Site Map Information

The TreeView Control

TreeView Properties

TreeView Styles

The Menu Control

Menu Styles

Menu Templates .

The Last Word

Working with Data ADO.NET Fundamentals

Understanding Data Management

The Role of the Database

Database Access in the Web World

Configuring Your Database

SQL Server Express

Browsing and Modifying Databases in Visual Studio

The sqlcmd Command-Line Tool

SQL Basics

Running Queries in Visual Studio

The Select Statement

The SQL Update Statement

The SQL Insert Statement

The SQL Delete Statement

ADO.NET Basics

Data Namespaces

The Data Provider Classes

Direct Data Access

Creating a Connection

The Select Command

The DataReader

Putting It All Together

Updating Data

Disconnected Data Access

Selecting Disconnected Data

Selecting Multiple Tables

Defining Relationships

The Last Word

Data Binding Introducing Data Binding

Types of ASP.NET Data Binding

How Data Binding Works

Single-Value Data Binding

A Simple Data Binding Example

Simple Data Binding with Properties

Problems with Single-Value Data Binding

Using Code Instead of Simple Data Binding

Repeated-Value Data Binding

Data Binding with Simple List Controls

A Simple List Binding Example

Strongly Typed Collections

Multiple Binding

Data Binding with a Dictionary Collection

Using the DataValueField Property

Data Binding with ADO.NET

Creating a Record Editor

Data Source Controls

The Page Life Cycle with Data Binding

The SqlDataSource

Selecting Records

Parameterized Commands

Handling Errors

Updating Records
The Last Word

The Data Controls

The GridView

Automatically Generating Columns

Defining Columns

Formatting the GridView

Formatting Fields

Using Styles

Formatting-Specific Values

Selecting a GridView Row

Adding a Select Button

Using Selection to Create Master-Details Pages

Editing with the GridView

Sorting and Paging the GridView



Using GridView Templates

Using Multiple Templates

Editing Templates in Visual Studio

Handling Events in a Template

Editing with a Template

The DetailsView and FormView

The DetailsView

The FormView

The Last Word

Files and Streams

Files and Web Applications

File System Information

The Path Class

The Directory and File Classes

The DirectoryInfo and FileInfo Classes

The DriveInfo Class

A Sample File Browser

Reading and Writing with Streams

Text Files

Binary Files

Shortcuts for Reading and Writing Files

A Simple Guest Book

Allowing File Uploads

The FileUpload Control

The Last Word


XML’s Hidden Role in .NET

Configuration Files


ADO.NET Data Access

Anywhere Miscellaneous Data Is Stored

XML Explained

Improving the List with XML

XML Basics



The XML Classes

The XML TextWriter

The XML Text Reader

Working with XML Documents in Memory

Reading an XML Document

Searching an XML Document

XML Validation

XML Namespaces

XML Schema Definition

Validating an XML Document

XML Display and Transforms

The Xml Web Control

XML Data Binding

Nonhierarchical Binding

Hierarchical Binding with the TreeView

Binding to XML Content from Other Sources The Last Word

Website Security

Security Fundamentals

Determining Security Requirements

The ASP.NET Security Model

The Visual Studio Web Server

Authentication and Authorization

Forms Authentication

Web.config Settings

Authorization Rules


The Login Page

Windows Authentication

Web.config Settings

IIS Settings

A Windows Authentication Test


Understanding Impersonation

Programmatic Impersonation

Confidentiality with SSL

Creating a Certificate Request

Secure Sockets Layer

The Last Word


The Membership Data Store

Membership with SQL Server 2005 Express

Using the Full Version of SQL Server

Configuring the Membership Provider

Creating Users with the WAT

The Membership and MembershipUser Classes

Authentication with Membership

Disabled Accounts

The Security Controls

The Login Control

The CreateUserWizard Control

The PasswordRecovery Control

Role-Based Security

Creating and Assigning Roles

Restricting Access Based on Roles

The LoginView Control

The Last Word


Understanding Profiles

Profile Performance

How Profiles Store Data

Using the SqlProfileProvider

Enabling Authentication

Using the Full Version of SQL Server

The Profile Databases

Defining Profile Properties

Using Profile Properties


Profile Serialization

Profile Groups

Profiles and Custom Data Types

The Profile API

Anonymous Profiles

The Last Word

Advanced ASP.NET

Component-Based Programming

Why Use Components?

Component Jargon

Three-Tier Design


Business Objects

Data Objects

Components and Classes

Creating a Component

Classes and Namespaces

Class Members

Adding a Reference to the Component

Using the Component

Properties and State

A Stateful Account Class

A Stateless AccountUtility Class

Data-Access Components

A Simple Data-Access Component

Using the Data-Access Component

Enhancing the Component with Error Handling

Enhancing the Component with Aggregate Information

The ObjectDataSource

Making Classes the ObjectDataSource Can Understand

Selecting Records

Using Method Parameters

Updating Records

The Last Word


Understanding Caching

When to Use Caching

Caching in ASP.NET

Output Caching

Caching on the Client Side

Caching and the Query String

Caching with Specific Query String Parameters

A Multiple Caching Example

Custom Caching Control

Fragment Caching

Cache Profiles

Data Caching

Adding Items to the Cache

A Simple Cache Test

Caching to Provide Multiple Views

Caching with the Data Source Controls

Caching with Dependencies

File Dependencies

Cache Item Dependencies

SQL Server 2000 Cache Dependencies

SQL Server 2005 and 2008 Cache Dependencies

The Last Word


Understanding Ajax

Ajax: The Good

Ajax: The Bad

The ASP.NET AJAX Toolkit

The ScriptManager

Partial Refreshes

A Simple UpdatePanel Test

Handling Errors

Conditional Updates


Progress Notification

Showing a Simulated Progress Bar


Timed Refreshes

The ASP.NET AJAX Control Toolkit

Installing the ASP.NET AJAX Control Toolkit

The Accordion

The AutoCompleteExtender

Getting More Controls

The Last Word


3 thoughts on “Asp.Net Contents

  1. A motivating discussion is worth comment. I do believe that you ought to write more on this issue, it might not be a taboo subject but generally people do not discuss such issues.
    To the next! Kind regards!!

Thanks a lot for visiting this site .. Please leave a Comment

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s