Beginning ASP.NET 2.0 in C# 2005 - From Novice to Professional

von: Matthew MacDonald

Apress, 2006

ISBN: 9781430201212 , 1184 Seiten

2. Auflage

Format: PDF, OL

Kopierschutz: Wasserzeichen

Windows PC,Mac OSX für alle DRM-fähigen eReader Apple iPad, Android Tablet PC's Online-Lesen für: Windows PC,Mac OSX,Linux

Preis: 42,79 EUR

Mehr zum Inhalt

Beginning ASP.NET 2.0 in C# 2005 - From Novice to Professional


 

Contents at a Glance

5

Contents

8

About the Author

27

About the Technical Reviewer

28

Acknowledgments

29

Introduction

30

PART 1 Introducing .NET

35

CHAPTER 1 Introducing the .NET Framework

37

The Evolution of Web Development

37

The .NET Framework

44

C#, VB .NET, and the .NET Languages

46

The Common Language Runtime

48

The .NET Class Library

50

Visual Studio

51

.NET 2.0

52

The Last Word

55

CHAPTER 2 Learning the C# Language

57

The .NET Languages

57

C# Language Basics

58

Variables and Data Types

61

Variable Operations

69

Object-Based Manipulation

73

Conditional Structures

78

Loop Structures

81

Methods

85

The Last Word

91

CHAPTER 3 Types, Objects, and Namespaces

93

The Basics About Classes

93

Building a Basic Class

96

Value Types and Reference Types

107

Understanding Namespaces and Assemblies

112

Advanced Class Programming

116

The Last Word

124

CHAPTER 4 Introducing Visual Studio 2005

125

The Promise of Visual Studio

125

Creating a Website

127

Designing a Web Page

132

Writing Code

139

Visual Studio Debugging

149

The Last Word

155

PART 2 Developing ASP.NET Applications

157

CHAPTER 5 Web Form Fundamentals

159

The Anatomy of an ASP.NET Application

159

A Simple One-Page Applet

164

Improving the Currency Converter

180

A Deeper Look at HTML Control Classes

186

The Page Class

192

ASP.NET Configuration

199

The Last Word

208

CHAPTER 6 Web Controls

209

Stepping Up to Web Controls

209

Web Control Classes

213

List Controls

220

Table Controls

225

AutoPostBack and Web Control Events

231

A Simple Web Page Applet

240

The Last Word

251

CHAPTER 7 Tracing, Logging, and Error Handling

253

Common Errors

253

Exception Handling

255

Handling Exceptions

259

Throwing Your Own Exceptions

266

Logging Exceptions

270

Error Pages

280

Page Tracing

286

The Last Word

300

CHAPTER 8 Validation and Rich Controls

301

Validation

301

A Simple Validation Example

305

Understanding Regular Expressions

312

Rich Controls

324

Pages with Multiple Views

336

The Last Word

350

CHAPTER 9 State Management

351

The Problem of State

351

View State

352

Transferring Information

359

Custom Cookies

368

Session State

371

Session State Configuration

378

Application State

386

An Overview of State Management Choices

388

The Global.asax Application File

390

The Last Word

392

CHAPTER 10 Master Pages and Themes

393

Master Page Basics

393

Advanced Master Pages

405

Themes

411

The Last Word

421

CHAPTER 11 Website Navigation

423

Site Maps

423

The SiteMapPath Control

443

The TreeView Control

447

The Menu Control

454

The Last Word

459

CHAPTER 12 Deploying ASP.NET Applications

461

ASP.NET Applications and the Web Server

461

IIS (Internet Information Services)

467

Managing Websites with IIS Manager

473

Deploying a Simple Site

487

Deploying with Visual Studio 2005

494

The Last Word

502

PART 3 Working with Data

503

CHAPTER 13 ADO.NET Fundamentals

505

ADO.NET and Data Management

505

SQL Basics

512

ADO.NET Basics

521

Direct Data Access

526

Creating a Connection

527

Defining a Select Command

534

Updating Data

541

Disconnected Data Access

552

Updating Disconnected Data

562

The Last Word

572

CHAPTER 14 Data Binding

573

Introducing Data Binding

573

Single-Value Data Binding

575

Repeated-Value Data Binding

581

Data Source Controls

598

The Last Word

612

CHAPTER 15 The Data Controls

615

The GridView

615

Formatting the GridView

622

Selecting a GridView Row

629

Editing with the GridView

634

Sorting and Paging the GridView

637

Using GridView Templates

642

The DetailsView and FormView

652

The Last Word

657

CHAPTER 16 Files and Streams

659

Files and Web Applications

659

File System Information

660

Reading and Writing with Streams

674

Allowing File Uploads

684

The Last Word

688

CHAPTER 17 XML

689

XML’s Hidden Role in .NET

689

XML Explained

690

The XML Classes

697

XML Validation

715

XML Display and Transforms

721

XML Data Binding

726

XML in ADO.NET

732

The Last Word

736

PART 4 Website Security

739

CHAPTER 18 Security Fundamentals

741

Determining Security Requirements

741

The ASP.NET Security Model

743

Forms Authentication

750

Windows Authentication

763

Impersonation

769

The Last Word

772

CHAPTER 19 Membership

773

The Membership Data Store

774

The Security Controls

793

Role-Based Security

807

The Last Word

814

CHAPTER 20 Profiles

815

Understanding Profiles

816

Using the SqlProfileProvider

819

The Last Word

843

PART 5 Web Services

845

CHAPTER 21 Web Services Architecture

847

Internet Programming Then and Now

847

Web Services Description Language

851

SOAP

858

Communicating with a Web Service

859

Web Service Discovery

861

WS-Interoperability

863

The Last Word

864

CHAPTER 22 Creating Web Services

865

Web Service Basics

865

The StockQuote Web Service

868

Documenting Your Web Service

872

Testing Your Web Service

876

Web Service Data Types

881

Consuming a Web Service

887

Using the Proxy Class

897

The Last Word

901

CHAPTER 23 Enhancing Web Services

903

State Management

903

Web Service Security

911

Web Service Transactions

922

An Example with TerraService

925

Windows Clients

932

The Last Word

934

PART 6 Advanced ASP.NET

935

CHAPTER 24 Component-Based Programming

937

Why Use Components?

937

Component Jargon

939

Creating a Simple Component

942

The Component Class

942

Properties and State

950

Database Components

953

The ObjectDataSource

964

The Last Word

970

CHAPTER 25 Custom Controls

971

User Controls

971

Derived Custom Controls

987

Dynamic Graphics

1011

The Last Word

1017

CHAPTER 26 Caching and Performance Tuning

1019

Designing for Performance

1020

Profiling

1023

Caching

1028

Output Caching

1029

Data Caching

1038

Caching with Dependencies

1050

The Last Word

1061

CHAPTER 27 Web Parts

1063

Introducing Web Part Basics

1064

Using Web Parts

1066

The Last Word

1095

Index

1097