The HTTP Handler provides two services for the banner manager:
- Loading Scripts to display Banners
- Tracking Clicks
The following Url loads the next banner in the dotnet category (note that the handler name is configurable):
The following script include loads a specific banner based on the id= parameter passed:
The above syntax is automatically generated by RenderBanner() or RenderNextBanner() to show banners, so you never need to manually type in these script includes, but rather use:
<%= BannerManager.Current.RenderBanner("1231222") %> <%= BannerManager.Current.RenderNextBanner("dotnet") %>
or similar to embed the banner content.
Actions (a parameter)The HttpHandler handles three distinct tasks which are routed via the a= url querystring parameter.
The following actions are handled:
- a=s - Script Include
Loads the script to display a specific banner in an IFrame. Done to so script loading occurs independent of main page and to minimize Robot tracking or interfering with script links.
If an ID parameter is also passed that particualar banner is loaded, otherwise GetNextBanner() is called to retrieve the next banner in the category specified (c parameter) is loaded.
- a=c - Banner Click
Handles click tracking for the banner. Click Tracking is automatically hooked up
Comment or report problem with topic