Platform SDK: CDO 1.2.1

Culinary Corner Files

As shown in the following tables, the Culinary Corner application contains a set of critique files and a set of culinary files. The first set is used for composing new critiques on restaurants while the second set is used for responding to existing critiques. Each of these sets contains a rootcomp.asp, resolve.asp, compose.asp, and read.asp file.

The application's root folder holds the include files needed by both samples, and the base code for the discussion application.

Root Folder

File Purpose
anlogon.inc Contains all of the Microsoft® Visual Basic® Scripting Edition (VBScript) code necessary to log on anonymously (create and check a CDO session), and find any published public folders.
folder.inc This include file contains most of the code specific to the CDO Rendering Library. Rendering objects are created and set up here; folder views, current folder, and the current page are set here. Folder.inc contains functions for generating a renderer.
discroot.asp The root frame for the discussion. Called from root.htm, this file calls title.asp and folder.asp to display the discussion content. This file also contains several JavaScript functions called by the browser on events in title.asp and folder.asp
title.asp This is a control bar containing JavaScript controls for setting views, refreshing the screen, paging through messages, and launching \culinary\compose.asp to post a new restaurant review.
folder.asp Folder.asp calls functions in folder.inc to set the renderer and render views of folders. It displays a page of messages (25 lines at a time). The format depends on the view selected. Each message provides a link to read.asp to allow that message to be read.
item.asp This script processes next/previous message requests.
global.asa Performs Active Server™ startup and shutdown functions, including impersonation to validate the user.
amprops.inc Definitions of common CDO constants and properties.
lang.inc Sets strings and error messages. Concentrating these in a single include file eases localization.

Culinary Folder

File Purpose
rootcomp.asp Used for rendering the frameset of the culinary page. This page also contains JavaScript code used to validate the data in compose.asp before allowing resolve.asp to send the custom form/message. Interacts with resolve.asp and compose.asp to preserve data in the page.
compose.asp Used when composing a new critique on a restaurant. Gathers data entered by the user.
resolve.asp Used for sending the composed critique. It retrieves data from compose.asp and attempts to send mail to the Culinary Corner folder.
read.asp Used when reading a critique on a restaurant. Responsible for retrieving data from the message and rendering it. Allows users to reply to a critique (that is, to make a critique of a critique).

Critique Folder

File Purpose
rootcomp.asp Used for rendering the frameset of the critique of the critique page. This page also contains JavaScript code used to validate the data in compose.asp before allowing resolve.asp to send the custom form/message. Interacts with resolve.asp and compose.asp to preserve data in the page.
compose.asp Used when responding to a critique on a restaurant. Gathers data entered by the user.
resolve.asp Used for sending the composed critique. It retrieves data from compose.asp and attempts to send mail to the culinary corner folder.
read.asp Used when reading the critique of a critique. Responsible for retrieving data from the message and rendering it. Allows users to reply a critique of a critique generating another critique of a critique.