RedirectURL Property

The RedirectURL property is a string Variant that specifies the URL of the redirecting ASP file, which logs the click event and redirects the user’s browser to the destination page.

Syntax

AdServerObject.RedirectURL

Remarks

This property does not specify the ultimate destination of the click-through, but rather an intermediary ASP file that logs the click and then redirects the visitor’s browser to the advertiser’s page.

If this property is not set explicitly, the default redirect page is "/adredir.asp".

The property must contain a URL which is correct on any page, regardless of where that page resides in the Application directory tree. For example, the following strings should not be used.

"adredir.asp
"../adredir.asp"

Instead, use a fully-qualified path, such as one of the following:

"/adredir.asp"
"http://www.yourcompany.com/adredir.asp"

Also, the destination page must be able connect to the AdServer object via the Application object.

Example

The following line might be used in Global.asa, after the AdServer object is created, so that ads will use a redirect page other than the default.

Ad.RedirectURL = "http://www.microsoft.com/adsamples/adredir.asp"

© 1997-1998 Microsoft Corporation. All rights reserved.