rent-now

Rent More, Save More! Use code: ECRENTAL

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

9780735619340

Microsoft ASP.NET Programming with Microsoft Visual Basic .NET Version 2003 Step By Step

by
  • ISBN13:

    9780735619340

  • ISBN10:

    0735619344

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

Summary

Teach 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)
Visual Basic. NET
8(1)
C#
8(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
16(2)
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(38)
Expressions, Variables, and Constants
50(10)
Expressions
50(1)
Variables
51(1)
Data Types
51(1)
Value Types vs. Reference Types
52(1)
Declaring Variables
53(1)
Variable Lifetime
54(2)
Scope
56(1)
Accessibility
57(1)
Constants
58(1)
Enumerations
59(1)
Procedures
60(2)
Sub Procedures
60(1)
Receiving Input Parameters
60(2)
Function Procedures
62(1)
Flow Control
62(10)
If Statements
63(1)
Select Case Statements
63(6)
Looping Statements
69(1)
Using For... Loops
69(1)
Using For Each... Loops
70(1)
Using Do... Loops
71(1)
Using While...End While Loops
71(1)
Error Handling
72(6)
Using the On Error Statement
73(1)
Using Structured Exception Handling: Try...Catch...Finally
74(4)
Understanding Object-Oriented Programming Basics
78(9)
Using Classes as Containers for Code
80(1)
Using Inheritance
80(2)
Inheriting from the .NET Base Classes
82(1)
Inheriting Across Languages
83(4)
Part 2 ASP.NET Infrastructure
Managing State
87(22)
Using Application State
88(6)
Synchronizing Access to Application State
90(2)
Recommendations for Application State
92(1)
Limitations of Application State
93(1)
Using Session State
94(6)
Enabling Session State
96(1)
Enabling Session State in Visual Studio.NET
97(2)
Recommendations for Session State
99(1)
Limitations of Session State
99(1)
State and Scalability
100(1)
Configuring Session State Storage
101(4)
Storing Session State In-Process
101(1)
Storing Session State Out-of-Process
101(2)
Storing Session State SQL Server
103(1)
Using Cookieless Sessions
104(1)
Formatting URLs for Cookieless Sessions
105(1)
Using Client-Side Cookies for State Storage
105(2)
Using Persistent Cookies
106(1)
ASP.NET Server Control State
107(2)
Configuring an ASP.NET Application
109(18)
Understanding ASP.NET Configuration
109(2)
Introducing Web.config
111(16)
Editing Configuration Files
112(1)
Editing the Master Configuration File
113(1)
Configuring an ASP.NET Application
114(8)
Overriding Configuration Settings for Subdirectories
122(1)
Locking Down Configuration Settings
123(1)
Running Against a Specific Frmework Version
124(3)
Security in ASP.NET
127(58)
The Importance of Security
128(1)
Security Basics
129(32)
Server Setup and Application Design
129(12)
Passwords, Please
141(5)
Limit Those Accounts
146(1)
No Samples, Thank You
147(1)
You Need Validation
148(1)
ASP.NET Request Validation
149(2)
Patching
151(3)
Access Control
154(1)
Auditing and Logging
155(2)
Using SSL to Protect Communications
157(4)
Enabling Authentication
161(13)
Selecting an Authentication Type
162(1)
Using Windows-Based Authentication
162(3)
Using .NET Passport Authentication
165(1)
Using Forms-Based Authentication
166(8)
Using Authorization
174(3)
Using NTFS ACLs for Authorization
174(1)
Using URL-Based Authorization
175(2)
Using Impersonation
177(1)
Understanding Code Access Security
178(1)
Security Resources
179(6)
Part 3 ASP.NET Web Forms
Creating Web Forms
185(40)
Anatomy of an ASP.NET Web Form
185(31)
Understanding Page Elements
186(2)
Understanding Page Lifetime
188(2)
Unsing Directives
190(5)
@ Page Examples
195(10)
The Page Class
205(2)
Writing Code in Web Forms
207(2)
Creating and Using User Controls
209(7)
Event Handling
216(5)
Handling Page Events
218(1)
Handling Control Events
219(1)
Handling Page Errors
220(1)
Page Runtime Structure
221(4)
Using Server Controls
225(50)
Types of Controls
225(41)
HTML Controls
225(8)
Web Controls
233(1)
Adding Server Controls to a Page
233(9)
Additional Web Control Examples
242(5)
RegWiz.aspx
247(6)
Specialty Controls
253(7)
Validation Controls
260(6)
Data-Bound Controls
266(1)
ASP.NET Mobile Web Applications and Controls
266(9)
ASP.NET Mobile Controls
266(9)
Accessing and Binding Data
275(72)
Understanding ADO.NET
276(3)
Understanding .NET Data Providers
276(2)
Understanding Datasets
278(1)
Creating and Opening Connections
279(7)
SqlConnection
279(3)
OleDbConnection
282(1)
Using Trusted Connections
283(3)
Reading and Updating Data with Commands
286(11)
SqlCommand
286(6)
OleDbCommand
292(3)
Using Stored Procedures
295(2)
Using Datasets
297(21)
Using DataAdapter Objects
297(1)
Reading XML Data
298(1)
Using Data Table, DataColumn, and DataRow Objects
298(10)
Updating Datasets
308(1)
Typed Datasets
309(8)
Using DataView Objects
317(1)
Reading Data with DataReader Objects
318(1)
SqlDataReader
318(1)
OleDbDataReader
319(1)
Data Binding
319(28)
Simple Data Binding
320(1)
Binding to Controls
321(2)
Using DataBinder.Eval
323(1)
Using the Data-Bound Controls
323(24)
Part 4 Beyond the Basics
Creating Custom Server Controls
347(56)
Creating Your First Control
348(12)
Creating a Namespace
349(1)
Creating a Class
349(1)
Inheriting from a Base Class
350(1)
Rendering Output from a Control
351(1)
Building Your First Control in Visual Studio .NET
352(8)
Adding Functionality
360(3)
Adding Propeties and Methods
360(3)
Creating More Advanced Controls
363(40)
Handling Postbacks
364(1)
Creating, Raising, and Handling Events
365(5)
A Registrationg and Login Control
370(26)
Maintaining State
396(2)
Creating Custom Controls Through Composition
398(5)
Creating and Using Web Services
403(32)
Understanding XML-Based Web Services
403(4)
SOAP and Web Services
406(1)
Additional Needs for Web Services
406(1)
Creating a Web Service
407(16)
Declaring a Web Service
407(1)
Creating the Web Service Class
408(10)
Advertising a Web Service
418(1)
Chapter_11.disco
419(1)
Securing a Web Service
420(1)
Exploring Authentication Options
421(2)
Using a Web Service
423(12)
Locating a Web Service
423(2)
Understanding WSDL Files
425(1)
Creating a Proxy Class
426(2)
MakeServices.bat
428(4)
How the Proxy Code Works
432(1)
Additional Resources
432(3)
Using Caching to Improve Performance
435(24)
Understanding Caching
435(1)
Using Output Caching
436(11)
Using the @ OutputCache Directive
436(10)
Using Response.Cache
446(1)
Caching Arbitrary Data
447(12)
Using the Cache APIs
450(9)
Deploying an ASP.NET Application
459(18)
Understanding the Structure of ASP.NET Applications
460(7)
Distinguishing Between Physical Path and URL
463(2)
Storing Application-Specific Configuration Settings
465(2)
Deploying a Web Application Manually
467(4)
Setting Up the Target Deployment Directory
467(1)
Copying Files to the Target Directory
467(2)
Setting IIS Permissions for Subdirectories
469(2)
Deployment Options in Visual Studio .NET
471(6)
Using Copy Project to Deploy a Web Application
471(1)
Using a Web Setup Project to Deploy a Web Application
472(5)
Tracing and Debugging ASP.NET Applications
477(98)
Tracing
478(7)
Enabling Page-Level Trace Output
478(2)
Enabling Application-Level Trace Output
480(1)
Writing to the Trace Output
481(3)
Understanding the Trace Output
484(1)
Debugging
485(16)
Understanding Bug Categories
485(1)
Preventing Bugs
486(1)
Compiling Web Forms Page in Debug Mode
487(3)
Understanding ASP.NET Error Messages
490(1)
Using the Visual Studio .NET Debugger
490(11)
Part 5 Appendixes
Appendix A Migrating from ASP to ASP.NET
501(12)
Migration Overview
501(1)
Page Structure Changes
501(2)
Language Changes
503(1)
Migrating a Data Access Page to ASP.NET
504(6)
GetAuthors2.aspx
510(1)
Best Practices for Preparing for ASP.NET
511(2)
Appendix B ASP.NET Configuration Elements
513(42)
<trace>
513(1)
<globalization>
514(2)
<httpRuntime>
516(3)
<compilation>
519(6)
<pages>
525(3)
<customErrors>
528(2)
<authentication>
530(4)
<identity>
534(1)
<authorization>
535(2)
<machineKey>
537(1)
<securityPolicy>
538(1)
<trust>
539(1)
<sessionState>
540(2)
<httpHandlers>
542(2)
<httpModules>
544(2)
<processModel>
546(5)
<webControls>
551(1)
<clientTarget>
551(1)
<browserCaps>
552(1)
Setting and Retrieving Custom Application Settings
553(1)
<appSettings>
553(2)
Appendix C Installing Visual Studio .NET 2003
555(20)
Before You Install
555(1)
Installing Visual Studio .NET 2003
556(19)
Index 575

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