Solved

ASP adrotator component

Posted on 1998-09-27
5
156 Views
Last Modified: 2013-12-25
Im trying to set up the adrotator component as a temporary ad-rotation solution....but am have problems getting the image to link correctly.   Would someone please take a look at www.healdsburgdbd.com (specifically the banner on the main page)?   ASP source for invoking adrotator shown below:

<%
Dim AdVar, AdObj
Set AdObj = Server.CreateObject("MSWC.AdRotator")
AdVar = AdObj.GetAdvertisement("adsched.txt")
Response.Write AdVar
%>
0
Comment
Question by:eason
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:MasseyM
ID: 1855287
The problem that I saw was the addition of the "image=" in the <A> tag of you ad.  But, the way that you make it go the the correct place is with this ASP code at the top of your page.

<%
GoToURL = Request.QueryString("URL")
If GoToURL <> "" then Response.Redirect GoToURL
%>

This will redirect the page to the appropriate ad page if there is a URL.. obviously, when you load you page, there is no "URL=" in the address string...

As for the image in your <A, I would have to see your actual ASP code that adds the ad to your page.



0
 

Author Comment

by:eason
ID: 1855288
Already tried this (the response.redirect).  The linked URL is as follows:

http://www.healdsburgdbd.com/?url=http://www.healdsburgdbd.com/advertising&image=ads/youradhere.gif

The fact that the url doesnt include index.asp is what is gumming up the works.  Any thoughts?  My scheduler file is set up correctly (to the best of my knowledge), but if you'd like to take a look, send your email address to adam@chilcote.com.

Thanks.
0
 
LVL 10

Accepted Solution

by:
MasseyM earned 100 total points
ID: 1855289
Add this line to the VERY top of your Ad Rotator Schedule file.

REDIRECT /path/adredirect.asp

Make an ASP page called adredirect.asp in that path and within it, include this:

<%
Response.Redirect(Request.QueryString("url"))
%>
%>
0
 

Author Comment

by:eason
ID: 1855290
The ASP book I have mentioned something about listing a redirect file in the scheduler header, but never really went into it.

Thanks for the help.
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1855291
What book do you use?  I use Professional Active Server Pages 2.0 from WQrox Press... It has to be the BEST ASP book I have ever found
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now