htmRenderCategoryPage - Solution Sites Routine

This function renders a category page, which lists subcategories and products within a category.

Definition

Function htmRenderCategoryPage(
  byVal oCatalog,
  byVal sCatalogName,
  byVal sCategoryName,
  byVal oCategory,
  byVal rsProducts,
  byVal nPageNumber,
  byVal nOutPagesTotal)

Parameters

  • oCatalog
    A reference to a copy of a ProductCatalog object.
  • sCatalogName
    A string containing the name of a catalog.
  • sCategoryName
    A string containing the name of a category.
  • oCategory
    A reference to a copy of a Category object.
  • rsProducts
    A reference to a copy of a Recordset object that contains a number of product records corresponding to the current catalog and category. This parameter is passed through to the function htmRenderProductsTable.
  • nPageNumber
    A number indicating the page to be displayed.
  • nOutPagesTotal
    A number indicating the total number of pages available for display.

Return Value

A string containing the HTML representation of a category page, which consists of the following sections:

  • If there are more than one pages that can be displayed, a line of numbered links to different pages within the category.
  • If displaying the first page of category information, a list of links to sub-categories.
  • A list of associated products, as created by the function htmRenderProductsTable.

If there are no sub-categories or products, a string indicating that is displayed in place of the second two sections.

Defined in File

include\catalog.asp

Routines Called

FormatOutput

htmRenderCategoriesList

htmRenderProductsTable

mscsGetSubCategoriesList

RenderCategoryURL

RenderLink

RenderText

Called By

htmCategoryHTML

htmRenderDefaultPage

Copyright © 2005 Microsoft Corporation.
All rights reserved.