Embedding Banners into Pages


You can embed banners into a page using the following expression syntax:

The easiest way to load a random banner of all active banners is to use code like the following:

<%= Westwind.Web.Banners.BannerManager.Current.GetNextBanner() %>

To filter by a specific type (as in the Type field in the banner table) specify a type string parameter:

<%= Westwind.Web.Banners.BannerManager.Current.GetNextBanner("dotnet") %>

You can also render a specific banner
<%= Westwind.Web.Banners.BannerManager.Current.RenderBanner("41231111")%>


© West Wind Technologies, 1996-2016 • Updated: 12/15/12
Comment or report problem with topic