ASP in a Nutshell

( 4 )

Overview

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 ...

See more details below
Paperback (Second Edition)
$29.57
BN.com price
(Save 26%)$39.99 List Price
Other sellers (Paperback)
  • All (76) from $1.99   
  • New (10) from $8.11   
  • Used (66) from $1.99   
ASP in a Nutshell: A Desktop Quick Reference

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • 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 for Web

Want a NOOK? Explore Now

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

Overview

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, bn.com 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.
Booknews
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 (booknews.com)
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,460,174
  • 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

Properties
None
Collections
None
Methods
SetAbort
SetComplete
Events
OnTransactionAbort
OnTransactionCommit

Comments/Troubleshooting

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

Preface

Part I: Introduction to Active Server Pages

Chapter 1: Active Server Pages:An Introduction

Chapter 2: Active Server Pages:Server-Side Scripting

Chapter 3: Extending Active Server Pages

Part II: Object Reference

Chapter 4: Application Object

Chapter 5: ASPError Object

Chapter 6: ObjectContext Object

Chapter 7: Request Object

Chapter 8: Response Object

Chapter 9: Server Object

Chapter 10: Session Object

Chapter 11: Preprocessing Directives, Server-Side Includes, and GLOBAL.ASA

Part III: Installable Component Reference

Chapter 12: ActiveX Data Objects 2.6

Chapter 13: Ad Rotator Component

Chapter 14: Browser Capabilities Component

Chapter 15: Collaboration Data Objects for Windows NT Server

Chapter 16: Content Linking Component

Chapter 17: Content Rotator Component

Chapter 18: Counters Component

Chapter 19: File Access Component

Chapter 20: Logging Utility Component

Chapter 21: MyInfo Component

Chapter 22: Page Counter Component

Chapter 23: Permission Checker Component

Chapter 24: Tools Component

Part IV: Appendixes

Appendix A: ASP Intrinsic Objects Member Summary

Appendix B: Converting CGI/WinCGI Applications into ASP Applications

Appendix C: ASP on Alternative Platforms

Appendix D: Configuration of ASP Applications on IIS

Colophon

Read More Show Less

Customer Reviews

Average Rating 4
( 4 )
Rating Distribution

5 Star

(3)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(1)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com 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 & Noble.com 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 & Noble.com 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 BN.com 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

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com 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 BN.com. 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

    Outstanding

    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)