Developing ASP Components

By Shelley Powers
January 1900
Pages: 507
ISBN 10: 1-56592-446-0 | ISBN 13: 9781565924468
starstarstarstarstar (Average of 6 Customer Reviews)

This book is OUT OF PRINT. Please consider the latest edition.

Book description

Developing add-on controls and components is emerging as a multibillion dollar industry that is increasingly attracting the attention of developers. This book provides developers with the information and real-world examples they need to create custom ASP components using any of the three major development tools: Visual Basic, Visual C++, and J++.
Full Description

The popularity of Microsoft's Active Server Pages (ASP) technology is growing rapidly. Part of the reason is ASP's flexibility: the output of ASP scripts is most commonly HTML, which is included in the text stream returned to the client, making it a convenient way of creating browser-independent web content. But an additional reason--and one that will become more and more important over time, as web applications replace web pages--is its extensibility. And the most effective way to extend ASP is to develop custom ASP components. However, the techniques for developing custom ASP components, along with the snags and pitfalls of developing custom components, are not well documented. In addition, to successfully develop ASP components one must be a jack-of-all-trades: programming requires some knowledge of COM, of threading models, and of the ASP object model, as well as a mastery of one or more language tools and development environments. That's where Developing ASP Components comes in. The first section of the book explores the topics all developers need to know to develop components for ASP effectively:
  • The configuration of the ASP development environment
  • ASP components and the Component Object Model (COM)
  • ASP components and threading models
  • ASP components and the Microsoft Transaction Server, which can be used to provide a variety of services to ASP components
  • The objects, properties, methods, and events available in the ASP object model
Because more and more developers find themselves using more than a single language tool, the remaining three sections of the book each focus on ASP component development using any of the three major development tools: Microsoft Visual Basic, Microsoft Visual C++ and the ActiveX Template Library (ATL), and Microsoft J++. Each section carefully focuses on the issues that concern the ASP component developer who is using that particular development environment. These include:
  • Accessing ASP's intrinsic objects
  • Accessing data using either OLE DB (in the case of C++) or ADO (in the case of VB and J++)
  • Creating n-tier web applications with VB
  • Handling persistence using MFC along with Visual C++/ATL
  • Accessing native code (the Windows libraries, which are written in C) from J++
This thorough coverage of the background information needed for developing ASP components, as well as its focus on the component development in each of three major development environments, makes Developing ASP Components the definitive resource for the ASP application and component developer.
Post-purchase benefits:

Register your book | Submit Errata | Author's ASP Web Page | Author Interview | Examples


Browse within this book

Cover | Table of Contents | Index | Sample Chapter | Colophon

Book details

First Edition: January 1900
ISBN: 1-56592-446-0
Pages: 507
Average Customer Reviews: starstarstarstarstar (Based on 6 Reviews)


Featured customer reviews

Write a Review


Developing ASP Components Review,  March 14 2001
Rating: StarStarStarStarStar
Submitted by kiran mayi   [Respond | View]

Such books which concentrate on a single Technology are far better than beating around all possible bushes!!! Sincere Thanks to the Author.


Developing ASP Components Review,  November 06 2000
Rating: StarStarStarStarStar
Submitted by Marvin Reinhart   [Respond | View]

Excellent!! This book lays everything out very clear. It provided me with the best single source of information on what I had to know to create the best performing ASP components I could. I am a VB developer and found the information to be extremely useful both for the VB information, the J++ information, and IIS itself. This book is a must for those starting to write COM components and for experienced developers, too. My personal opinion is that if you are developing ASP components in VB or J++ without this book you are doing yourself a disservice. The book also covers developing components with C++ but I only use VB and J++ so I skipped that part of the book. Best book I bought this year.


Developing ASP Components Review,  July 27 2000
Rating: StarStarStarStarStar
Submitted by Robert Hurlbut   [Respond | View]

The author really understands the diverse nature of developing a good n-tier component (Windows DNA) system using ASP, IIS, and MTS. She does an excellent job of presenting

how to develop components using Visual C++, Visual Basic, and Visual J++. There are no other books on the market that have attempted this! This book is up to date and a very practical introduction to developing ASP Components. Great job, Shelley, for giving us a great resource!

Read all reviews


Developing ASP Components Review,  July 27 2000
Rating: StarStarStarStarStar
Submitted by Sainath C   [Respond | View]

Easy to understand code and demonstrates how to development COMponents in various languages which is the best part of the book.


Developing ASP Components Review,  July 27 2000
Rating: StarStarStarStarStar
Submitted by Jayant Gawde   [Respond | View]

A book devoted to a specific topic is always far superior to the other books which trys to cover all technologies on the earth.


Developing ASP Components Review,  July 27 2000
Rating: StarStarStarStarStar
Submitted by Peter Hendén   [Respond | View]

Essential for the ASP developer. Good book. Was perfect for me. Its easier to criticise a bad book than to describe the pros of a good one.


Developing ASP Components Review,  January 09 2000
Submitted by Federico Panini   [Respond | View]



Great book on ASP components and COM !!!
Thanx a lot !


Developing ASP Components Review,  August 13 1999
Submitted by Albert Pi   [Respond | View]



This is a great book for ASP&COM developer, and also this is the best ASP book so far.


Media reviews

Microsoft's Active Server Pages first made it big because ASP scripts output HTML, making them super-handy for creating browser-independent web content. But as programmers get increasingly comfortable with ASP, and the web matures to host even more true applications, a second benefit will become even more compelling. ASP is remarkably extensible. You can build your own custom ASP components--in essence, COM components designed to interface with ASP and Microsoft's Internet Information Server.

Like other COM components, ASP Components lend themselves splendidly to being reused; they are protected from the snoops who might steal your ASP scripts; and they can reside anywhere, even on different machines tied together via DCOM.

As part of the ASP environment, they can access built-in objects containing data your garden-variety COM objects wouldn't normally see: HTML form field values; browser types; the user's preferred spoken language; and more. You can write 'em with VB, C++, or J++. They can also do, well, just plain tons of stuff--database access, file I/O, archiving, and messaging, to name a few. Impressive, huh?

Well, there's a catch, as always. I can't resist quoting Charles Carroll, creator of the great www.activeserverpages.com tutorial site, on the subject: "...building a component with a half a dozen pages of Microsoft documentation is like getting an eyedropper full of water before that multimonth trek across a desert."

Carroll makes that trenchant observation in the process of endorsing the first outstanding book on the subject, Developing ASP Components, by Shelley Powers. In this book, he says "Shelley provides us with a camel and a couple month's supply for our trip to the desert. Heck, she even shows us how to walk around the desert and avoid all that head and sand." Couldn'a said it better myself.

Powers starts with an overview of ASP components and why they're worth developing. (I've hit a few of the high points above, but there's a lot more to the story.) You'll pick your programming language; then walk through setting up and maintaining your ASP development environment, using IIS 4's built-in tools and features, including the Microsoft Script Debugger and IIS Metabase.

The book contains a nicely-written overview of COM that's ideal for developers who haven't written COM components before. In fact, building ASP components requires you to know at least something about quite a few different things--threading, MTS, the ASP object model's properties, methods, and events--and Powers makes sure you do. She doesn't assume you're an expert COM developer, or that you've ever developed ASP components or applications; anywhere there's potential for confusion, she errs on the side of a little more information, rather than less.

The heart of the book is its detailed coverage of building ASP components with each of Microsoft's three leading development tools, Visual Basic 6, Visual C++ 6 with the ActiveX Template Library (ATL), and Visual J++ 6. (Powers doesn't cover third-party tools but points out that Delphi and PowerBuilder can do the job, as well.) She covers each language's built-in tools, wizards, and ASP components, and focuses in detail on the specific issues facing developers in each environment.

For example, you'll learn how to access ASP's five intrinsic objects, the Application, Session, Server, Request, and Response objects. There's extensive coverage of data access, using OLE DB with C++, and using ADO with Visual Basic and J++. One chapter focuses specifically on building interactive database query components.

You'll learn when to create in-process and out-of-process components; and how to ensure that components are thread-safe. There's a full chapter on creating n-tier ASP components with Visual Basic (including, as you'd expect by now, a cogent and brief overview of n-tier and its implications).

The more you work with ASP and Microsoft's other web technologies, the more valuable ASP components will become. You've waited just long enough to get started. But now that, Developing ASP Components, has arrived, there's no need to wait another day. --Bill Camarda, barnesandnoble.com editor

Hide extended reviews


See larger cover