htmRenderCatalogSection - Solution Sites Routine

This function creates the HTML representation of the catalog section of the menu, including an appropriate header, and an indication of no catalogs being available, a list of categories in a single catalog, or a list of multiple catalogs.

Definition

Function htmRenderCatalogSection(
  byVal style,
  byVal rsCatalogs,
  byVal iCatalogCount,
  byVal oCatalog,
  byVal sCatalogName,
  byVal rsCategories)

Parameters

  • style
    A set of attributes corresponding to the FONT element, used when creating the HTML representation of the catalog name.
  • rsCatalogs
    A reference to a copy of a Recordset object that contains a number of catalog records. There must be a Fields entry corresponding to the constant "CATALOG_NAME_PROPERTY_NAME".
  • iCatalogCount
    An integer that indicates the number of catalogs in the rsCatalogs parameter.
  • oCatalog
    A reference to a copy of a ProductCatalog object.
  • sCatalogName
    A string containing the name of a category.
  • rsCategories
    A reference to a copy of a Recordset object that contains a number of category records/

Return Value

A string containing the HTML representation of the catalog section of the menu area. This string contains one of the following:

  • When no catalogs are found, a catalog header and a string indicating that no catalogs were found.
  • When more than one catalog is found, a catalog header and a list of links to the multiple catalogs.
  • When one catalog is found, a list of links to the categories in the single catalog.

Defined in File

template\menu.asp

Routines Called

htmRenderCatalogList

htmRenderCategoriesList

RenderText

Called By

htmRenderMenu

Remarks

This function depends on a preceding call to the PrepareCatalogSection function to establish its parameters.

Copyright © 2005 Microsoft Corporation.
All rights reserved.