Previous in Contents Next in Contents

DesignMode Property

The DesignMode property is a Boolean Variant that determines whether the AdServer object returns the default ad or an error message when the GetAd method cannot determine an appropriate advertisement to return.

Syntax

AdServerObject.DesignMode

Remarks

By default, this property is set to False, so that if an error occurs in serving an ad, the site visitor will see your default ad. However, for designing and troubleshooting your site, you can set this property to True so that you will see information about the error on the page rather than the default ad or a blank ad.

Note

Errors are always logged to the Windows NT Event Viewer, whether DesignMode is used or not.

Example

The following line enables design mode.

  Ad.DesignMode = TRUE

See Also

DefaultAd, GetAd


© 1997-2000 Microsoft Corporation. All rights reserved.