--- title: "AbsolutePage, PageCount, and PageSize Properties Example (JScript) | Microsoft Docs" ms.prod: sql ms.prod_service: connectivity ms.technology: connectivity ms.custom: "" ms.date: "01/19/2017" ms.reviewer: "" ms.topic: conceptual dev_langs: - "JScript" helpviewer_keywords: - "PageCount property [ADO], JScript example" - "AbsolutePage property [ADO], JScript example" - "PageSize property [ADO], JScript example" ms.assetid: 2db6dd3f-5a9c-438c-ae62-d09242906c98 author: MightyPen ms.author: genemi --- # AbsolutePage, PageCount, and PageSize Properties Example (JScript) This example demonstrates the AbsolutePage, PageCount and PageSize properties. Cut and paste the following code to Notepad or another text editor, and save it as **AbsolutePageJS.asp**. ``` <%@LANGUAGE="JScript" %> <%// use this meta tag instead of adojavas.inc%>
There are ' + iPageCount); Response.Write(" pages, each containing "); Response.Write(rsEmployee.PageSize + " or fewer records.
"); Response.Write('| Page | Name | Hire Date | |
|---|---|---|---|
| Page " + i + " of " + rsEmployee.PageCount + " | " else strMessage += ""; // First and last name are in first column. strMessage += " | " + rsEmployee.Fields("FirstName") + " "; strMessage += rsEmployee.Fields("LastName") + " " + " | "; // Hire date in second column. strMessage += "" + rsEmployee.Fields("HireDate") + " | "; // End the row. strMessage += "