C# Class Dnn.Modules.Vendors.DisplayBanners

Inheritance: DotNetNuke.Entities.Modules.PortalModuleBase, IActionable
Datei anzeigen Open project: DNNCommunity/DNN.Vendors

Protected Properties

Property Type Description
lstBanners global::System.Web.UI.WebControls.DataList

Public Methods

Method Description
FormatItem ( int VendorId, int BannerId, int BannerTypeId, string BannerName, string ImageFile, string Description, string URL, int Width, int Height ) : string

Protected Methods

Method Description
OnLoad ( EventArgs e ) : void

The Page_Load event handler on this User Control is used to obtain a DataReader of banner information from the Banners table, and then databind the results to a templated DataList server control. It uses the DotNetNuke.BannerDB() data component to encapsulate all data functionality.

Method Details

FormatItem() public method

public FormatItem ( int VendorId, int BannerId, int BannerTypeId, string BannerName, string ImageFile, string Description, string URL, int Width, int Height ) : string
VendorId int
BannerId int
BannerTypeId int
BannerName string
ImageFile string
Description string
URL string
Width int
Height int
return string

OnLoad() protected method

The Page_Load event handler on this User Control is used to obtain a DataReader of banner information from the Banners table, and then databind the results to a templated DataList server control. It uses the DotNetNuke.BannerDB() data component to encapsulate all data functionality.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

Property Details

lstBanners protected_oe property

lstBanners control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.DataList lstBanners
return global::System.Web.UI.WebControls.DataList