ASP in a Nutshell

( 4 )


ASP in a Nutshell provides the high-quality reference documentation that web application developers really need to create effective Active Server Pages. It focuses on how features are used in a real application and highlights little-known or undocumented features.

This book also includes an overview of the interaction between the latest release of Internet Information Server (version 5) and ASP 3.0, with an introduction to the IIS object model and the objects it comprises. The ...

See more details below
Paperback (Second Edition)
$29.38 price
(Save 26%)$39.99 List Price
Other sellers (Paperback)
  • All (71) from $1.99   
  • New (8) from $1.99   
  • Used (63) from $1.99   
ASP in a Nutshell: A Desktop Quick Reference

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$17.99 price
(Save 43%)$31.99 List Price


ASP in a Nutshell provides the high-quality reference documentation that web application developers really need to create effective Active Server Pages. It focuses on how features are used in a real application and highlights little-known or undocumented features.

This book also includes an overview of the interaction between the latest release of Internet Information Server (version 5) and ASP 3.0, with an introduction to the IIS object model and the objects it comprises. The examples shown in this section and throughout the book are illustrated in VBScript.

The main components of this book are:

  • Active Server Pages Introduction. Brief overview of the ASP application paradigm with examples in VBScript. Also included is an introduction to Microsoft's Internet Information Server 5.0, the IIS object model, and the objects that it comprises.
  • Object Reference. Each object is discussed in the following manner: descriptions, properties, collections, methods, events, accessory files/required DLLs, and remarks, including real-world uses, tips and tricks, and author's experience (where applicable). The objects—Application, Response, Request, Server, Session, ObjectContext, and ASPError, as well as ASP Directives, Global.ASA, and Server-Side Includes—all follow this paradigm.
  • Component Reference. This section follows the same paradigm found in Object Reference. The discussion covers all of the additional components included with IIS, such as ActiveX Data Objects, the Ad Rotator, the Browser capabilities component, the File System Object, and more.
  • Appendixes. Gives examples in one or two objects and components using Perl, REXX, and Python in ASP.

Like other books in the "In a Nutshell" series this book offers the facts, including critical background information, in a no-nonsense manner that users will refer to again and again. It is a detailed reference that enables even experienced web developers to advance their ASP applications to new levels.

Concise and comprehensive, this three-part desktop reference explores Microsoft's Active Server Pages object model, the powerful server technology used to create Web applications with any scripting language. This is a reference and guide for developers, and it assumes familiarity with ASP, Web application development and related technologies such as ActiveX and COM.

Read More Show Less

Editorial Reviews

From Barnes & Noble
The Barnes & Noble Review
If you're an experienced developer working with ASP 3 and IIS 5.0, here's the authoritative, real-world ASP reference you'll use every day. Building on his best-selling first edition, A. Keyton Weissinger offers detailed insight for making the most of ASP 3 and the IIS object model, followed by a comprehensive reference focusing on real-world applications and illuminating underpublicized ASP features that offer you powerful opportunities.

ASP in a Nutshell, Second Edition presents detailed coverage of every key ASP object: when you'd use it, how it works, its properties, collections, methods, events, any accessory files or DLLs you'll need, and (in many cases) tricks from the author's personal grab-bag. Weissinger introduces preprocessing directives, server-side includes, GLOBAL.ASA, and much more. You'll also learn how to use the powerful components that ship with ASP 3.0 and IIS 5.0, including its ADO 2.6 support and prebuilt components for ad and content rotation, browsing, CDO-based workflow and messaging, content linking, page counters, file access, logging, permission checking, and more.

Four valuable appendices cover ASP Intrinsic Objects, conversion of CGI/WinCGI applications to ASP, ASP on alternative platforms (e.g., ChiliSoft); and configuring ASP applications on IIS.
Bill Camarda, editor

Library Journal
ASP (active server pages) technology is a model of dynamic information service, which means the user gets customized information rather than static, designed-for-everyone html pages. ASP also has an open-source initiative, which gives legs to ASP outside of Microsoft; presently it runs on everything from Microsoft to Unix/Linux, Mac, and SGI. This manual is not for beginners, but this is a highly lucrative area at the moment. Copyright 1999 Cahners Business Information.
This reference guide for developers shows how particular object model features are used in a real application, and highlights little- known or undocumented aspects. The second edition is updated to cover ASP 3.0 and IIS 5.0. Annotation c. Book News, Inc., Portland, OR (
Read More Show Less

Product Details

  • ISBN-13: 9781565928435
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 7/28/2000
  • Series: In a Nutshell (O'Reilly) Series
  • Edition description: Second Edition
  • Edition number: 2
  • Pages: 494
  • Sales rank: 1,406,073
  • Product dimensions: 6.03 (w) x 9.04 (h) x 1.15 (d)

Meet the Author

Weissinger is the Director for Enterprise Solutions at a start-up company in Atlanta.

Read More Show Less

Read an Excerpt

Chapter 6: ObjectContext Object

As of version 2.0, an important feature of Active Server Pages is the ability to create a transactional script: one whose constituent code segments all succeed completely or fail as a group. For example, using such a script, one section of code could remove a record from an inventory table, and a second section could add a record to a sales log table. However, only if both sections of code succeed does the script itself succeed. If the removal of the inventory record or the addition of the sales record fails, the script itself fails. Both processes are rolled back: the deleted record, if it was removed, is added back into the database, and the sales record, if it was added, is removed from the sales log table. This ability to wrap several functions in a single transactional unit that succeeds or fails as a whole is an important improvement in the power of ASP applications. Previously, all transactions relied on database transaction support.

ASP application transactions are controlled by Windows 2000 COM+ Component Services or Windows NT's Microsoft Transaction Server (MTS). This piece of the BackOffice suite allows control over all database actions coded to use it. Support for transactional scripts is built into IIS and Personal Web Server and does not require any special setup. Without COM+ Component Services' or, in ASP 2.0, MTS transactional support, your applications would have to track all database changes manually and roll back all database actions by hand, keeping track of multiuser and concurrency issues, etc. MTS or COM+ Component Services gives this support for very little extra coding--as long as the database your application is connected to supports the XA protocol from the X/Open consortium. Note that this support is currently limited to SQL Server. Note, also, that this means that file actions are not yet supported--or at least, not automatically.

ASP's support of transactions is coded through the use of the ObjectContext object, which represents the actual ObjectContext object of COM+ Component Services itself. By calling methods of the ObjectContext object and coding its events, you can create a transactional script with only a few more lines of code.

To declare all the script on a given page to be transactional, simply add the following line of code as the first line in your script:

<%@ TRANSACTION = Required %>

For more details on the TRANSACTION ASP directive, see Chapter 11, Preprocessing Directives, Server-Side Includes, and GLOBAL.ASA. Here it is important only that this line be the first in your script; including this line alerts the web server to use Component Services to ensure that the script succeeds or fails as a whole.

To commit the transaction or abort it, you simply call the SetComplete or SetAbort methods of the ObjectContext object, respectively. If you are dealing with a complex transaction containing segments of code that are not supported by Component Services (notably file actions), you can specially code for these actions in the ObjectContext events OnTransactionCommit and OnTransactionAbort. There are examples of all of these methods and event procedures in the reference section later in this chapter.

ObjectContext Object Summary



There are currently two very important limitations in constructing transactional scripts:

  • Only database actions are supported, and only databases that support the XA protocol are supported by COM+ Component Services or MTS.
  • A transaction cannot span more than one ASP page. For this reason, you must be very careful in creating your pages: they must include all the actions required by your transactions but not be so large as to slow the processing of the page by too large a percentage...
Read More Show Less

Table of Contents

Who Is This Book for?;
How to Use This Book;
How This Book Is Structured;
Conventions Used in This Book;
Comments and Questions;
Acknowledgments for the Second Edition;
Acknowledgments from the First Edition;
Part I: Introduction to Active Server Pages;
Chapter 1: Active Server Pages:An Introduction;
1.1 The Static Internet;
1.2 The Dynamic Internet Part I: CGI Applications;
1.3 The Dynamic Internet Part II: ISAPI;
1.4 Active Server Pages and Active Server Pages 2.0;
1.5 ASP: A Demonstration;
1.6 The ASP Object Model;
Chapter 2: Active Server Pages:Server-Side Scripting;
2.1 Client-Side Scripting;
2.2 Server-Side Scripting;
2.3 ASP Functions;
2.4 Scripting Languages;
Chapter 3: Extending Active Server Pages;
Part II: Object Reference;
Chapter 4: Application Object;
4.1 Comments/Troubleshooting;
4.2 Collections Reference;
4.3 Contents Collection Methods;
4.4 Methods Reference;
4.5 Events Reference;
Chapter 5: ASPError Object;
5.1 Comments/Troubleshooting;
5.2 Properties Reference;
5.3 ASPError Example;
Chapter 6: ObjectContext Object;
6.1 Comments/Troubleshooting;
6.2 Methods Reference;
6.3 Events Reference;
Chapter 7: Request Object;
7.1 How HTTP Works;
7.2 The ASP Request Object;
7.3 Comments/Troubleshooting;
7.4 Properties Reference;
7.5 Collections Reference;
7.6 Methods Reference;
Chapter 8: Response Object;
8.1 Comments/Troubleshooting;
8.2 Properties Reference;
8.3 Collections Reference;
8.4 Methods Reference;
Chapter 9: Server Object;
9.1 Comments/Troubleshooting;
9.2 Properties Reference;
9.3 Methods Reference;
Chapter 10: Session Object;
10.1 Comments/Troubleshooting;
10.2 Properties Reference;
10.3 Collections Reference;
10.4 Methods Reference;
10.5 Events Reference;
Chapter 11: Preprocessing Directives, Server-Side Includes, and GLOBAL.ASA;
11.1 Preprocessing Directives;
11.2 Preprocessing Directives Reference;
11.3 Server-Side Includes;
11.5 GLOBAL.ASA Reference;
Part III: Installable Component Reference;
Chapter 12: ActiveX Data Objects 2.6;
12.1 Accessory Files/Required DLL Files;
12.2 Instantiating Active Data Objects;
12.3 Comments/Troubleshooting;
12.4 Object Model;
12.5 Properties Reference;
12.6 Collections Reference;
12.7 Methods Reference;
Chapter 13: Ad Rotator Component;
13.1 Accessory Files/Required DLL Files;
13.2 Instantiating the Ad Rotator;
13.3 Comments/Troubleshooting;
13.4 Properties Reference;
13.5 Methods Reference;
13.6 Ad Rotator Example;
Chapter 14: Browser Capabilities Component;
14.1 Accessory Files/Required DLL Files;
14.2 Instantiating the Browser Capabilities Component;
14.3 Comments/Troubleshooting;
14.4 Properties Reference;
14.5 Retrieving Browser Information from Cookies;
Chapter 15: Collaboration Data Objects for Windows NT Server;
15.1 Accessory Files/Required DLL Files;
15.2 Instantiating Collaboration Data Objects;
15.3 Comments/Troubleshooting;
15.4 The CDO Object Model;
15.5 NewMail Object Properties Reference;
15.6 Methods Reference;
Chapter 16: Content Linking Component;
16.1 Accessory Files/Required DLL Files;
16.2 Instantiating a Content Linking Object;
16.3 Comments/Troubleshooting;
16.4 Methods Reference;
16.5 Content Linking Component Example;
Chapter 17: Content Rotator Component;
17.1 Accessory Files/Required DLL Files;
17.2 Instantiating the Content Rotator Component;
17.3 Comments/Troubleshooting;
17.4 Methods Reference;
Chapter 18: Counters Component;
18.1 Accessory Files/Required DLL Files;
18.2 Instantiating the Counters Component;
18.3 Comments/Troubleshooting;
18.4 Methods Reference;
Chapter 19: File Access Component;
19.1 Accessory Files/Required DLL Files;
19.2 Instantiating Installable Components;
19.3 Comments/Troubleshooting;
19.4 Object Model;
19.5 Properties Reference;
19.6 Methods Reference;
Chapter 20: Logging Utility Component;
20.1 Accessory Files/Required DLL Files;
20.2 Instantiating the Logging Utility Component;
20.3 Comments/Troubleshooting;
20.4 Properties Reference;
20.5 Methods Reference;
20.6 Logging Utility Component Example;
Chapter 21: MyInfo Component;
21.1 Accessory Files/Required DLL Files;
21.2 Comments/Troubleshooting;
21.3 Properties Reference;
Chapter 22: Page Counter Component;
22.1 Accessory Files/Required DLL Files;
22.2 Instantiating the Page Counter Component;
22.3 Comments/Troubleshooting;
22.4 Methods Reference;
Chapter 23: Permission Checker Component;
23.1 Accessory Files/Required DLL Files;
23.2 Instantiating the Permission Checker;
23.3 Comments/Troubleshooting;
23.4 Methods Reference;
Chapter 24: Tools Component;
24.1 Accessory Files/Required DLL Files;
24.2 Instantiating the Tools Component;
24.3 Comments/Troubleshooting;
24.4 Methods Reference;
Part IV: Appendixes;
Appendix A: ASP Intrinsic Objects Member Summary;
Appendix B: Converting CGI/WinCGI Applications into ASP Applications;
B.1 The CGI Application;
B.2 The Perl CGI Script;
B.3 The Visual Basic CGI Application;
B.4 The Active Server Pages;
B.5 Converting Environment Variables;
Appendix C: ASP on Alternative Platforms;
C.1 Chili!ASP from Chili!Soft;
C.2 Instant ASP (iASP) from Halcyon Software;
C.3 OpenASP from the ActiveScripting Organization;
Appendix D: Configuration of ASP Applications on IIS;
D.1 Microsoft Management Console and the Metabase;

Read More Show Less

Customer Reviews

Average Rating 4
( 4 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 8 Customer Reviews
  • Anonymous

    Posted July 3, 2002

    The only ASP 'classic' title you'll ever need

    This is truly an excellent book. I have read both editions and loved them. This is the only ASP 'classic' title that you will ever need and I can assure you from experience that the examples definitely work. The Wrox books dwell on trivial subjects ad nauseum. If you have experience with programming, you can plough through this and start writing good ASP code in no time. If you pick up VBScript in a Nutshell, you will be unstoppable in your ASP coding.

    1 out of 1 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted January 7, 2005

    requires more reading

    this book is good for people who already have some knowledge about asp. i wouldn't recommend it for beginners. it requires a lot of reading and there is so much text written to actually extract some meaningful iformation.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted February 12, 2001

    A Good Start

    I never saw asp code before and with this book I understand and was able to make a family tree site for my family.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted January 10, 2001

    Excellent reference book on ASP

    This is a good starting point. All you need is PWS and have some understanding of HTML with VB scripting and this will put in right path. Good examples as well. This book has been sitting on my shelves for a year. I just have been waiting for the right time to apply ASP. And in no time I was supporting DB server for our dept's web page.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted November 25, 2000

    Better books available

    I have purchased three other ASP programming books before reading this one. After reviewing the code samples in this book, I can not recommend this book be used by anyone serious about programming. The sample code does not work and the advice is either outdated or simply wrong. It is painfully obvious that this coder has very little time actually using the code.

    0 out of 1 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted June 1, 2000


    If you use ASP in your development you must have this book! Excellent quick reference!

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted May 26, 2000

    A gotta-have a book Like this

    A gotta-have! In its unassuming text and its relatively handy size.ASP in a Nutshell is a great reference book, with detailed descriptions and examples of the Objects and Components of ASP

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted May 8, 2000

    Your One-Stop ASP tutor and reference!

    This book has been an amazing boost to my ability to use ASP and quickly turn out web apps! A gotta-have! In its unassuming text and its relatively handy size, it is a perfect companion!

    Was this review helpful? Yes  No   Report this review
Sort by: Showing all of 8 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)