C# Class Dnn.Modules.Vendors.Banners

Datei anzeigen Open project: DNNCommunity/DNN.Vendors

Public Properties

Property Type Description
VendorID int

Protected Properties

Property Type Description
cmdAdd global::System.Web.UI.WebControls.HyperLink
grdBanners global::System.Web.UI.WebControls.DataGrid

Public Methods

Method Description
DisplayDate ( DateTime DateValue ) : string

DisplayDate formats a Date

DisplayType ( int BannerTypeId ) : string

DisplayDate formats a Date

FormatURL ( string strKeyName, string strKeyValue ) : string

FormatURL correctly formats the Url (adding a key/Value pair)

Protected Methods

Method Description
OnLoad ( EventArgs e ) : void

Page_Load runs when the control is loaded

Private Methods

Method Description
BindData ( ) : void

BindData gets the banners from the Database and binds them to the DataGrid

Method Details

DisplayDate() public method

DisplayDate formats a Date
public DisplayDate ( DateTime DateValue ) : string
DateValue DateTime The Date to format
return string

DisplayType() public method

DisplayDate formats a Date
public DisplayType ( int BannerTypeId ) : string
BannerTypeId int
return string

FormatURL() public method

FormatURL correctly formats the Url (adding a key/Value pair)
public FormatURL ( string strKeyName, string strKeyValue ) : string
strKeyName string The name of the key to add
strKeyValue string The value to add
return string

OnLoad() protected method

Page_Load runs when the control is loaded
protected OnLoad ( EventArgs e ) : void
e EventArgs
return void

Property Details

VendorID public_oe property

public int VendorID
return int

cmdAdd protected_oe property

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

grdBanners protected_oe property

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