Microsoft KB Archive/195283

= Programming Active Server Pages Comments and Corrections =

Article ID: 195283

Article Last Modified on 3/9/2001

-

APPLIES TO


 * MSPRESS Programming Active Server Pages ISBN 1-57231-700-0

-



This article was previously published under Q195283



SUMMARY
This article contains comments, corrections, and information about known errors relating to the Microsoft Press book Programming Active Server Pages, ISBN 1-57231-700-0.

The following topics are covered:
 * Page 38: Complete Object Reference Not Included On CD-ROM
 * Page 112-115: Code Correction



Page 38: Complete Object Reference Not Included On CD-ROM
On page 38, in the 4th paragraph, change the last sentence to reference Appendix D.

Change:

"A complete object reference is also included on the CD-ROM that accompanies this book."

To:

"For a complete object reference refer to Appendix D."

Page 112-115: Code Correction
There is a paging recordset example on page 112-115 and in the code you specify the pagesize as 10. This creates a problem if you end up with a recordcount not divisible by 10.

Add the following code to resolve the issue:

<% If CLng(Session("CurrentPage")) = ObjRecordset.PageCount Then

'how many records are here

If ObjRecordset.RecordCount < 10 Then

ObjRecordset.PageSize = ObjRecordset.RecordCount

Else

'we do some maths

counted = ((ObjRecordset.Pagecount - 1)*10)

ObjRecordSet.PageSize = ObjRecordset.RecordCount - Clng(counted)

End If

End If

%>

Microsoft Press is committed to providing informative and accurate books. All comments and corrections listed above are ready for inclusion in future printings of this book. If you have a later printing of this book, it may already contain most or all of the above corrections.

Additional query words: ms_press asp 1-572321-700-0 Hiller Mezick DevBook

Keywords: kbinfo kbdocfix kbdocerr KB195283

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.