public class BannerManager : object
Member | Description | |
---|---|---|
Constructor | ||
Current | Global instance | |
BannerHit | Increments the hit counter on a banner public bool BannerHit(string BannerId);
|
|
ClickBanner | Updates the banner click count in the database public bool ClickBanner(string BannerId);
|
|
CreateTables | Creates the Sql Server Tables public bool CreateTables(string ConnectionString);
|
|
DeleteBanner | Deletes an individual banner public bool DeleteBanner(string BannerId);
|
|
GetBanner | Returns a specific banner item by its id public BannerItem GetBanner(string BannerId);
|
|
GetNextBanner | Returns a random banner public BannerItem GetNextBanner(string Group);
|
|
InsertBannerItem | Inserts a new banner public string InsertBannerItem(BannerItem Item);
|
|
LoadBanners | Loads all banners into the Banners collection public bool LoadBanners(string BannerGroup);
|
|
RenderBanner | Renders a given banner as a HTML public string RenderBanner(BannerItem banner);
public string RenderBanner(BannerItem banner,
bool NoTracking); public string RenderBanner(string BannerId);
|
|
RenderBannerLink | Renders a given banner as a HTML public string RenderBannerLink(BannerItem banner);
public string RenderBannerLink(string BannerId);
|
|
RenderNextBanner | Retrieves the next banner for the group and renders the banner as a script include into the page. public string RenderNextBanner(string bannerGroup);
public string RenderNextBanner();
|
|
RenderNextBannerLink | This is the primary rendering routine that retrieves the next Banner and renders it as a script include into the page. public string RenderNextBannerLink(string BannerGroup);
public string RenderNextBannerLink();
|
|
SetError | public void SetError(string Message);
public void SetError();
|
|
UpdateBannerItem | Updates an existing banner item. public bool UpdateBannerItem(BannerItem Item);
|
|
BannerClicksTable | Name of the table that holds banner clicks | |
Banners | Collection of Banners for this banner instance String value key is the banner id | |
BannerTable | The name of the table that contains the banners | |
ConnectionString | The Connection string used to retrieve the banners | |
ErrorMessage | An error message if an error occurs | |
TrackBannerStatistics | Determines whether Hit counts and clicks are tracked. Results in different links for the images |