Asp Rotator Component Error

Results 1 to 2 of 2

Thread: Asp Rotator Component Error

  1. #1
    Join Date
    Dec 1969

    Default Asp Rotator Component Error

    I am getting the following error:<BR><BR>Error Type:<BR>Microsoft VBScript runtime (0x800A01B6)<BR>Object doesn&#039;t support this property or method: &#039;GetAdvertisement&#039;<BR>/ssearch/Default.asp, line 35<BR><BR>for the following code:<BR><BR> Set AdRotator = Server.CreateObject("MSWC.AdRotator")<BR> AdRotator.Border = 0<BR> AdRotator.GetAdvertisement("adrot.txt")<BR> set AdRotator = nothing<BR><BR><BR>I copied everything from this site anyone know what might be going on.

  2. #2
    Join Date
    Dec 1969

    Default Use Response.Write

    The adrotator returns the path to the image and link as defined in your adrot.txt file so just use Response.Write as below;<BR><BR>Set AdRotator = Server.CreateObject("MSWC.AdRotator") <BR>AdRotator.Border = 0 <BR>Response.Write(AdRotator.GetAdvertisement("adr ot.txt") )<BR>set AdRotator = nothing <BR><BR>Matt<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts