ASP.NET and VB.NET Web Programming, 1st edition

  • Matt J. Crouch

Unfortunately, this item is not available in your country.


The Microsoft .NET Framework and Active Server Pages.NET (ASP.NET) allow developers to create world-class Web applications and Web services quickly and easily. Web applications built within the .NET Framework can integrate with any operating system running on any device. Web services are reusable component applications that enable distributed computing on the Internet, using standard protocols like HTTP and XML. Developers conversant in .NET can now deliver more dynamic applications to market more quickly.

ASP.NET and VB.NET Web Programming provides developers with the practical information and step-by-step guidance they need to become productive with .NET. This tutorial offers a comprehensive yet approachable introduction to the .NET Framework, ASP.NET programming, and XML Web Services development. Each chapter begins with an overview and then walks readers through one or more lab exercises that are well illustrated with screenshots and punctuated with tips and warnings. All examples are in Visual Basic.NET (VB.NET).

Key topics covered include:

  • The .NET Framework and the Web
  • Web Services
  • Common Language Runtime (CLR)
  • The .NET Framework class library
  • VB.NET
  • Internet Information Server (IIS)
  • Managed components
  • Web Forms
  • Securing ASP.NET applications


Table of contents


1. The .NET Platform and the Web.

The Pathway to Web Applications.

The Web Client/Server Model.

Web Clients and Web Servers.

Protocols for Web Client/Server Communication.

Server-Side Processing with CGI Programs.

Disadvantages of Using CGI.

Components of ASP.NET and the .NET Framework.

Overview of Internet Information Server.

ISAPI Extensions.

ISAPI Filters.

Overview of ASP.NET.

Web Forms.

The .NET Common Language Runtime and Class Library.

Managed Components in .NET.

Web Services.

Language Independence in the .NET Framework.

COM+ Component Services and .NET.

Direction and Plans for .NET.

What's Ahead.

2. The VB.NET Crash Course.

What Is VB.NET?

Hello World (Yet Again).

Lab 2-1: Your First VB Application.

Variables, Constants, and Operators.

Variable Types.

Declaring and Assigning Variables.

Scope and Lifetime of Variables.


Converting Data Types.

Using Constants.

Arithmetic and Comparison Operators.

Modularizing Your Code—Functions and Subroutines.

Using Functions.

Using Subroutines.

Controlling Program Flow.

Conditional Processing.

Flow Control Statements.


Handling Errors and Exceptions.

Unstructured Error Handling.

Structured Exception Handling.

Object-Oriented Programming.

Class Basics.

Class Properties.

Constructors and Destructors.


Overridden Functions.


Polymorphism Overview.


Implementing Polymorphism by Using Interfaces.

Multithreaded Programming.

Thread Synchronization.

Events and Thread Synchronization.


What's Ahead.

3. Working with ASP.NET.

The Features of ASP.NET.

The Anatomy of ASP.NET Pages.

The Code Structure of ASP.NET.

Execution Stages and State Management.

The Events Model for the Page Class.

Introducing Web Forms.

VS.NET Web Applications and Other IDE Basics.

Separating Content and Code—the Code-Behind Feature.

Application Configuration.

Structure and Configuration of the Global.asax File.

Using HTML Controls.

The HTMLForm Control.

The HTMLAnchor Control.

The HTMLButton Control.

The HTMLGenericControl Control.

The HTMLImage Control.

The HTMLInputButton Control.

The HTMLInputCheckBox Control.

The HTMLInputFile Control.

The HTMLInputHidden Control.

The HTMLInputImage Control.

The HTMLInputRadioButton Control.

The HTMLInputText Control.

The HTMLSelect Control.

The HTMLTable, HTMLTableCell, and HTMLTableRow Controls.

The HTMLTextArea Control.

Using Web Controls.

Shared Web Control Properties.

Web Controls for Displaying and Formatting Data.

The Label Control.

The Panel Control.

The Table, TableRow, and TableCell Controls.

Web Controls for Creating Buttons.

The Button Control.

The ImageButton Control.

The LinkButton Control.

Demonstration of Web Button Controls.

Web Control for Inputting Text.

The TextBox Control.

Web Controls for Selecting Choices.

The CheckBox Control.

The RadioButton Control.

The CheckBoxList and RadioButtonList Controls.

Web Controls for Creating Lists.

The ListBox Control.

The DropDownList Control.

Miscellaneous Basic Controls.

The Hyperlink Control.

The Image Control.

Creating a Simple ASP.NET Application.

Lab 3-1: Your First ASP.NET Project.

ASP.NET Page Directives.

The @ Page and @ Control Directives.

The @ Import Directive.

The @ Register Directive.

The @ Assembly Directive.

The @ OutputCache Directive.

ASP.NET Rich Controls.

The Calendar Control.

The AdRotator Control.

Validation Controls.

The BaseValidator Control.

The RequiredFieldValidator Control.

The CompareValidator Control.

The RangeValidator Control.

The RegularExpressionValidator Control.

The CustomValidator Control.

Data List Controls.

The Repeater Control.

The DataGrid Control.

The DataList Control.

Building the XYZ Corporation Home Page.

Lab 3-2: The XYZ Corporation Home Page.

User Controls.

Authoring a User Control.

Saving State with the StateBag Object.

ASP.NET Intrinsic Objects.

The HttpRequest Object.

The HttpResponse Object.

The HttpServerUtility Object.

The HttpApplicationState Object.

The HttpSessionState Object.

The ObjectContext Object.


What's Ahead.

4. Using the .NET Framework Class Library.

Common Features of the .NET Framework Class Library.

Using Data Collections (System.Collections).

The ArrayList Class.

The Stack Class.

The Queue Class.

The Hashtable Class.

Handling File Input/Output and Directories (System.IO).

Reading Text Files.

Writing Text Files.

Using Binary File I/O with the FileStream Object.

Reading Binary Files.

Writing Binary Files.

Performing File Operations.

Getting File Information.

Copying, Moving, and Renaming Files.

Deleting Files.

Creating, Moving, and Renaming Directories.

Creating and Getting Directory Information.

Accessing Directory Contents.

Watching the File System for Changes (System.IO.FileSystemWatcher).

Using the Windows Event Log (System.Diagnostics).

Working with Active Directory Services (System.DirectoryServices).

Displaying Active Directory Services Contents.

Searching Active Directory Services Contents.

Modifying Active Directory Services Contents.

Using Message Queues (System.Messaging).

Creating a Queue.

Sending a Message to a Queue.

Dequeuing a Message.

Communicating with Servers on the Internet (System.Web and System.Net).

A Simple TCP Client Application.

A Simple TCP Server Application.

HTTP Communication.

Manipulating XML Data (System.XML).

Creating Tree-Based XML Documents.

Loading and Searching Tree-Based XML Documents.

Reading Stream-Based XML Data.

Writing Stream-Based XML Data.

Formatting XML Data for Display.

Sending Internet E-mail (System.Web.Mail).


What's Ahead.

5. Building .NET Managed Components for COM+.

The Concept of Managed Code Execution.

The Common Language Runtime.

The Common Type System.

Just-in-Time Code Compilation.

Code Assemblies.

Application Domains.

COM+ Component Services.

Overview of COM.

Overview of Transactions.

Automatic Transactions.

COM+ Applications.

COM+ Security.

.NET Classes and COM+ Component Services.

Using VB.NET to Develop Managed Components.

Defining Namespaces.

Using the Class Library.

Using Component “ing”.

Adding Initialization Code.

Creating Methods.

Creating Properties.

Using the Class Library in an Application.

Serviced Components.

Building VB.NET Serviced Components.

Lab 5-1: An Ordering and Inventory System Made with Serviced Components.


What's Ahead.

6. Building Web Services.

The Need for Web Services.

Standards-Based Functionality (XML and HTTP).

Separation of Data from Presentation.

Overview of Web Services.

The .asmx File.

Web Service Classes and Web Methods.

Web Service Description Language.

Web Service Wire Formats.



Using the Simple Object Access Protocol (SOAP).

Web Services Discovery.

Static Discovery.

Dynamic Discovery.

Creating a Simple Web Service.

Lab 6-1: The Palindrome Web Service.

Calling Web Services with Proxy Classes.

Creating a Client for a Web Service.

Lab 6-2: A Console Application for the Palindrome Web Service.

Managing State in Web Services.

Using Transactions in Web Services.

Making an Advanced Web Service.

Lab 6-3: An Enhanced Ordering and Inventory System.


What's Ahead.

7. Accessing Data with ADO.NET.

Overview of Data Access on the Web.

Flat Files.

Legacy or Mainframe Data.

Proprietary Database APIs.

Standard APIs.


ADO.NET: The Next Generation of Data-Access Technology.

ADO.NET Programming Objects and Architecture.

The DataSet Class.

The .NET Managed Data Provider.

Displaying Database Data.

The IDataReader Interface (System.Data.IDataReader).

Working with Command Parameters.

The DataGrid Control Revisited.

Displaying Data in the DataGrid Control.

Editing Data in the DataGrid Control.

Programming with the DataList and DataGrid Controls.

Lab 7-1: An Online Photo Gallery.

Working with the DataSet and DataTable Objects.

The DataSet Class Summary.

The DataTable Class Summary.

Creating DataSet and DataTable Objects.

Adding Data to a DataTable Object.

Displaying Data in a DataTable Object.

Loading and Updating DataSet Objects with the IDataAdapter Interface.

Filtering and Sorting Data with the DataView Class.

Maintaining Data Integrity with the DataRelation Class.

Using Manual Database Transactions.

Working with Typed DataSet Objects.

Lab 7-2: VS.NET and Typed DataSet Objects.


What's Ahead.

8. Securing .NET Applications.

Windows Security 5

File/Object System Security.

User Rights, Groups, and Policies.

IIS Authentication and Authorization Security.

Anonymous Access.

BASIC Authentication.

Integrated Windows Authentication.

Digest Authentication.

Authentication by IP Address and Domain.

A Crash Course in Cryptography.

Symmetric Cryptography.

Public Key Cryptography.

Hashes and Digital Signatures.

Digital Certificates.

Implementing Data Encryption (System.Security.Cryptography).

ASP.NET Authentication Security.

The Forms-Based Authentication Provider.

The Windows Authentication Provider.

The Microsoft Passport Authentication Provider.

Summary 6

Appendix A. .NET Framework Class Library Reference Tables.

Appendix B. ADO.NET Class Library Reference Tables.


Index. 0201734400T05012002

Published by Addison-Wesley Professional (May 17th 2002) - Copyright © 2002