Example Code Targeting Objects

This section provides detailed examples of how to use the targeting object.

Examples

Example Description
Code to Support the ContentSelector Object Contains code to include in the Global.asa file to support the ContentSelection object.
Code to Execute the ContentSelector Object Contains code to include in the Default.asp file that you use to create the ContentSelection object, code that you use with the GetContent method, and code you use to write ads to the Web page.
Code to Connect to the Expression Store Describes how to connect to, and disconnect from, the Expression Store.
Code to Create an Evaluation Context Describes how to create an evaluation context that contains the data for evaluating an expression against.
Code to Evaluate an Expression Stored as an XML Fragment Describes how to evaluate an expression stored as an XML fragment.
Code to Create a New Expression Describes how to create a new expression.
Code to Manipulate Expressions Describes how to retrieve or delete expressions from the Expression Store, rename an expression, or translate between expression IDs and expression names.
Code to Evaluate a Single Expression Describes how to evaluate a single expression.
Code to Evaluate Groups of Expressions Describes how to create a stored evaluation context and evaluate groups of expressions against this common context.
Code to Import and Export Expressions Describes how to import and export expressions.
Code to Initialize the ListManager Object Describes how to create and initialize the ListManager object.
Code to Create a List Describes how to create a list from a file.
Code to Manipulate Lists Describes the operations performed on lists such has copy, subtract, union, and export, and the procedure to add and subtract a user from a list.
Code to Enumerate Available Lists Describes how to retrieve and enumerate the available lists and set list properties, such as the list name and description.

Copyright © 2005 Microsoft Corporation.
All rights reserved.