Results 1 to 6 of 6

Thread: Ad Rotator component

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    101

    Ad Rotator component

    I am getting the message
    "Object doesn't support this property or method:'GetAdvertisement'

    when i using the code

    Set AdRotator= Server.CreateObject("MSWC.AdRotator")

    Thanks

  2. #2
    New Member
    Join Date
    Nov 2002
    Posts
    3
    This would be easier to look at if you could provide the rest of the code.
    javac2

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    101
    Set AdRotator= Server.CreateObject("MSWC.AdRotator")
    AdRotator.GetAdvertisement ("emp_data/adrot.txt")

    Is the only other statement where the adrot.txt is the Rotator Schedule file.

    Please let me know

    Thanks

  4. #4
    Frenzied Member andreys's Avatar
    Join Date
    Sep 2002
    Location
    Los Angeles
    Posts
    1,615
    Try this
    Code:
    Set AdRotator= Server.CreateObject("MSWC.AdRotator")
    response.write (AdRotator.GetAdvertisement ("emp_data/adrot.txt") )

  5. #5

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    101

    Thanks andreys

    Thanks a lot andreys. It worked.

    Could you please explain why i had the problem

  6. #6
    New Member
    Join Date
    Nov 2002
    Posts
    3
    beat me to it Andreys!
    javac2

Posting Permissions

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



Click Here to Expand Forum to Full Width