Rotating Advert

by Justin Azzopardi
Rotating Advert preview

Price

$0

Details

Licence:
Free
Works with:
4.0, 4.1
Version:

Web site

http://www.computime.com.mt

Summary

Rotating partial or full-banner using Javascript.

Description

Rotating partial or full-banner using Javascript which loads images from a defined folder.

Please find the instructions in the Rotating Advert Control.txt within the package.

Comments


FroggEye commented on

After fixing a problem with locating the image, the control works great.

This code:
_filesToLoad.Add(Request.ApplicationPath + FilePath + _fileInfo.Name);

was not getting the correct location of the document.

After I modified it to this:
_filesToLoad.Add(HttpContext.Current.Request.Url.GetLeftPart(System.UriPartial.Authority) + HttpContext.Current.Request.ApplicationPath + FilePath + _fileInfo.Name);

it worked just fine.

I think it would also be beneficial to make it so these images could be clickable.