rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9780735619357

Microsoft ASP.NET Programming with Microsoft Visual C# .NET Version 2003 Step By Step

by Duthie, G.Andrew
  • ISBN13:

    9780735619357

  • ISBN10:

    0735619352

  • Edition: 1st
  • Format: Paperback
  • Copyright: 2003-04-23
  • Publisher: Microsoft Press
  • Purchase Benefits
List Price: $39.99

Summary

Your hands-on, self-study guide for building Web applications and services with ASP.NET and Visual Basic .NET version 2003Teach yourself how to write high-performance Web applications with ASP.NET and Visual Basic .NET--one step at a time. This practical, hands-on tutorial expertly guides you through the fundamental tools and technologies, including the common language runtime, Web Forms, XML Web services, and Microsoft .NET Framework version 1.1--with coverage that's fully up-to-date with the innovations in Visual Basic .NET version 2003. Work at your own pace through the easy-to-follow lessons and hands-on exercises to learn essential techniques. And accelerate your productivity by working with instructive code examples and best practices for ASP.NET Web development with Visual Basic .NET. Topics include creating ASP.NET Web applications; managing application state; configuring ASP.NET applications; implementing security, including using new capabilities in authentication and request validation; creating Web Forms, server controls, and XML Web services; accessing data, including exploiting new Microsoft ADO.NET functionality; enabling caching; testing, debugging, and deploying ASP.NET applications; and more.

Author Biography

G. Andrew Duthie is an experienced ASP.NET developer. He is a frequent speaker at ASP.NET conferences, and is the author of a number of books on ASP.NET and Visual Interdev.

Table of Contents

Acknowledgments xii
Introduction xiii
Finding Your Best Starting Point xiii
Installing the Sample Files xv
Conventions Used in This Book xvii
Part 1 Getting Started with ASP.NET
Opening and Running an ASP.NET Web Application
3(30)
Understanding Microsoft .NET
3(6)
The .NET Framework
4(1)
The Common Language Runtime
4(1)
The .NET Framework Class Library
5(1)
.NET Languages and Language Tools
6(1)
Notepad and Other Text Editors
7(1)
Visual Studio .NET
7(1)
C#
7(1)
Additional .NET Languages
8(1)
Getting Started with Visual Studio .NET
9(6)
Visual Studio .NET Basics
9(6)
The Visual Studio .NET IDE
15(15)
IDE Enhancements
15(3)
New Features
18(1)
IDE Windows
19(7)
Toolbars
26(1)
Menus
27(1)
Options
28(1)
Exiting Visual Studio .NET
29(1)
What's New in ASP.NET
30(3)
Familiar Features
30(1)
What's New
30(3)
Creating an ASP.NET Web Application
33(16)
ASP.NET Project Types
33(4)
ASP.NET Web Applications
34(1)
ASP.NET Web Forms
35(1)
Code-Behind
35(1)
ASP.NET Web Services
36(1)
ASP.NET Mobile Web Applications
36(1)
ASP.NET File Types
37(1)
Visual Studio .NET
38(11)
Creating Applications
39(3)
Adding Server Controls
42(4)
Building and Testing Your Page
46(3)
Understanding Programming Basics
49(42)
Expressions, Variables, and Constants
50(10)
Expressions
50(1)
Variables
51(3)
Declaring Variables
54(5)
Operators
59(1)
Constants
59(1)
Enumerations
60(1)
Methods
60(5)
Flow Control
65(12)
if Statements
66(2)
switch case Statements
68(6)
Looping Statements
74(3)
Error Handling
77(6)
Ways to Handle Exceptional Situations
77(1)
Checking Return Values
78(1)
Using Structured Exception Handling: try...catch...finally
78(5)
Understanding OBject-Oriented Programming Basics
83(8)
Using Classes as Containers for Code
84(1)
Using Inheritance
85(6)
Part 2 ASP.NET Infrastructure
Managing State
91(22)
Using Application State
92(6)
Synchronizing Access to Application State
94(2)
Recommendations for Application State
96(1)
Limitations of Application State
97(1)
Using Session State
98(6)
Enabling Session State
100(1)
Enabling Session State in Visual Studio.NET
101(2)
Recommendations for Session State
103(1)
Limitations of Session State
103(1)
State and Scalability
104(1)
Configuring Session State Storage
105(4)
Storing Session State In-Process
105(1)
Storing Session State Out-of-Process
105(2)
Storing Session State in SQL Server
107(1)
Using Cookieless Sessions
108(1)
Formatting URLs for Cookieless Sessions
109(1)
Using Client-Side Cookies for State Storage
109(2)
Using Persistent Cookies
110(1)
ASP.NET Server Control State
111(2)
Configuring an ASP.NET Application
113(18)
Understanding ASP.NET Configuration
113(2)
Introducing Web.config
115(16)
Editing Configuration Files
116(2)
Configuring an ASP.NET Application
118(8)
Overriding Configuration Settings for Subdirectories
126(1)
Locking Down Configuration Settings
127(1)
Running Against a Specific Framework Version
128(3)
Security in ASP.NET
131(58)
The Importance of Security
132(1)
Security Basics
133(32)
Server Setup and Application Design
133(12)
Passwords, Please
145(5)
Limit Those Accounts
150(1)
No Samples, Thank You
151(1)
You Need Validation
152(1)
ASP.NET Request Validation
153(2)
Patching
155(3)
Access Control
158(1)
Auditing and Logging
159(2)
Using SSL to Protect Communications
161(4)
Enabling Authentication
165(13)
Selecting an Authentication Type
166(1)
Using Windows-Based Authentication
166(3)
Using .NET Passport Authentication
169(1)
Using Forms-Based Authentication
170(8)
Using Authorization
178(3)
Using NTFS ACLs for Authorization
178(1)
Using URL-Based Authorization
179(2)
Using Impersonation
181(1)
Understanding Code Access Security
182(1)
Security Resources
183(6)
Part 3 ASP.NET Web Forms
Creating Web Forms
189(40)
Anatomy of an ASP.NET Web Form
189(31)
Understanding Page Elements
190(2)
Understanding Page Lifetime
192(2)
Using Directives
194(5)
@ Page Examples
199(10)
The Page Class
209(2)
Writing Code in Web Forms
211(2)
Creating and Using User Controls
213(7)
Event Handling
220(5)
Handling Page Events
222(1)
Handling Control Events
223(1)
Handling Page Errors
224(1)
Page Runtime Structure
225(4)
Using Server Controls
229(50)
Types of Controls
229(41)
HTML Controls
229(8)
Web Controls
237(1)
Adding Server Controls to a Page
237(9)
Additional Web Control Examples
246(11)
Specialty Controls
257(7)
Validation Controls
264(6)
Data-Bound Controls
270(1)
ASP.NET Mobile Web Applications and Controls
270(9)
ASP.NET Mobile Controls
270(9)
Accessing and Binding Data
279(72)
Understanding ADO.NET
280(3)
Understanding .NET Data Providers
280(2)
Understanding Datasets
282(1)
Creating and Opening Connections
283(7)
SqlConnection
283(3)
OleDbConnection
286(1)
Using Trusted Connections
287(3)
Reading and Updating Data with Commands
290(11)
SqlCommand
290(6)
OleDbCommand
296(3)
Using Stored Procedures
299(2)
Using Datasets
301(21)
Using DataAdapter Objects
301(1)
Reading XML Data
302(1)
Using DataTable, DataColumn, and DataRow Objects
302(10)
Updating Datasets
312(1)
Typed Datasets
313(8)
Using DataView Objects
321(1)
Reading Data with DataReader Objects
322(1)
SqlDataReader
322(1)
OleDbDataReader
323(1)
Data Binding
323(28)
Simple Data Binding
324(1)
Binding to Controls
325(2)
Using DataBinder.Eval
327(1)
Using the Data-Bound Controls
327(24)
Part 4 Beyond the Basics
Creating Custom Server Controls
351(58)
Creating Your First Control
352(12)
Creating a Namespace
353(1)
Creating a Class
353(1)
Inheriting from a Base Class
354(1)
Rendering Output from a Control
355(1)
Building Your First Control in Visual Studio .NET
356(8)
Adding Functionality
364(3)
Adding Properties and Methods
364(3)
Creating More Advanced Controls
367(42)
Handling Postbacks
368(1)
Creating, Raising, and Handling Events
369(4)
A Registration and Login Control
373(28)
Maintaining State
401(2)
Creating Custom Controls Through Composition
403(6)
Creating and Using Web Services
409(32)
Understanding XML-Based Web Services
409(4)
SOAP and Web Services
412(1)
Additional Needs for Web Services
412(1)
Creating a Web Service
413(16)
Declaring a Web Service
413(1)
Creating the Web Service Class
414(11)
Advertising a Web Service
425(1)
Chapter_11.disco
426(1)
Securing a Web Service
427(1)
Exploring Authentication Options
428(1)
Using a Web Service
429(12)
Locating a Web Service
429(2)
Understanding WSDL Files
431(1)
Creating a Proxy Class
432(2)
MakeServices.bat
434(4)
How the Proxy Code Works
438(1)
Additional Resources
438(3)
Using Caching to Improve Performance
441(24)
Understanding Caching
441(1)
Using Output Caching
442(11)
Using the @ OutputCache Directive
442(10)
Using Response.Cache
452(1)
Caching Arbitrary Data
453(12)
Using the Cache APIs
456(9)
Deploying an ASP.NET Application
465(18)
Understanding the Structure of ASP.NET Applications
466(7)
Distinguishing Between Physical Path and URL
469(2)
Storing Application-Specific Configuration Settings
471(2)
Deploying a Web Application Manually
473(4)
Setting Up the Target Deployment Directory
473(1)
Copying Files to the Target Directory
473(2)
Setting IIS Permissions for Subdirectories
475(2)
Deployment Options in Visual Studio .NET
477(6)
Using Copy Project to Deploy a Web Application
477(1)
Using a Web Setup Project to Deploy a Web Application
478(5)
Tracing and Debugging ASP.NET Applications
483(98)
Tracing
484(7)
Enabling Page-Level Trace Output
484(2)
Enabling Application-Level Trace Output
486(1)
Writing to the Trace Output
487(3)
Understanding the Trace Output
490(1)
Debugging
491(16)
Understanding Bug Categories
491(1)
Preventing Bugs
492(1)
Compiling Web Forms Pages in Debug Mode
493(3)
Understanding ASP.NET Error Messages
496(1)
Using the Visual Studio .NET Debugger
496(11)
Part 5 Appendixes
Appendix A Migrating from ASP to ASP.NET
507(12)
Migration Overview
507(1)
Page Structure Changes
507(2)
Language Changes
509(1)
Migrating a Data Access Page to ASP.NET
510(7)
Best Practices for Preparing for ASP.NET
517(2)
Appendix B ASP.NET Configuration Elements
519(42)
<trace>
519(1)
<globalization>
520(2)
<httpRuntime>
522(3)
<compilation>
525(6)
<pages>
531(3)
<customErrors>
534(2)
<authentication>
536(4)
<identity>
540(1)
<authorization>
541(2)
<machineKey>
543(1)
<securityPolicy>
544(1)
<trust>
545(1)
<sessionState>
546(2)
<httpHandlers>
548(2)
<httpModules>
550(2)
<processModel>
552(5)
<webControls>
557(1)
<clientTarget>
557(1)
<browserCaps>
558(1)
Setting and Retrieving Custom Application Settings
559(1)
<appSettings>
559(2)
Appendix C Installing Visual Studio .NET 2003
561(20)
Before You Install
561(1)
Installing Visual Studio .NET 2003
562(19)
Index 581

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