problem in using AdRotator in ASP.NET environment

KirstenStovall

New Member
The follwing code is written in test.asp and adrot.txt and is working fine in ASP environment.<BR><BR>--------<BR>test.asp<BR>--------<BR><%<BR>Set Addrot = Server.CreateObject("MSWC.Adrotator")<BR>Response.write (Addrot.GetAdvertisement("adrot.txt"))<BR>%><BR><BR>--------- <BR>adrot.txt<BR>---------<BR>REDIRECT adredir.asp<BR>WIDTH 460<BR>HEIGHT 60<BR>BORDER 0<BR>*<BR>logo.gif<BR>http://www.aspsite.com<BR>The Active Server Pages Site<BR>50<BR><BR>ColorControl.gif<BR>http://www.yahoo.com<BR>Ahsan Ashja<BR>50<BR><BR><BR>But when I wrote the same code in test.aspx and tried to run it in ASP.NET environment, it's giving error as: "Ad Rotator control must be created using the object tag or Server.CreateObject method".<BR>Can anybody tell me what is the possible solution? I would be grateful.<BR><BR>--------- <BR>test.aspx<BR>---------<BR><%<BR>Addrot = Server.CreateObject("MSWC.Adrotator")<BR>Response.write (Addrot.GetAdvertisement("adrot.txt"))<BR>%><BR><BR><BR>Why not use the ASP.NET Ad Rotator control? Check out this tutorial:<BR>http://www.aspnextgen.com/tutorials.aspx?tutorialid=26Thanks Scott but I do not want to use the ad Rotator control. Is there any other solution.Thanks Scott but I dont want to use the ad Rotator control. Is there any other solution.There is no other way..... use the Adrotator Control.... go for something which is better than previous one :)<BR><BR><BR>A h S a N.
 
Top