C# Class Engage.Dnn.Publish.Controls.ArticleSelector

Afficher le fichier Open project: EngageSoftware/Engage-Publish

Protected Properties

Свойство Type Description
ArticlesDropDownList global::System.Web.UI.HtmlControls.HtmlSelect
CategoriesDropDownList global::System.Web.UI.WebControls.DropDownList

Private Properties

Свойство Type Description
CategoriesDropDownListSelectedIndexChanged void
FillArticlesDropDown void
FillCategoryDropDown void
GetArticleId int?
Page_Load void
RegisterScripts void
SelectArticle void
SelectCategory void

Méthodes protégées

Méthode Description
OnInit ( EventArgs e ) : void

Raises the ModuleBase.Init event.

Private Methods

Méthode Description
CategoriesDropDownListSelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the CategoriesDropDownList control.

FillArticlesDropDown ( ) : void

Fills ArticlesDropDownList with the list of articles in the category selected in CategoriesDropDownList. Only called on pageload, all other requests use the webservice.

FillCategoryDropDown ( ) : void

Fills CategoriesDropDownList with the list of categories.

GetArticleId ( ) : int?

Gets the selected article ID.

Page_Load ( object sender, EventArgs e ) : void

Handles the Load event of the Page control.

RegisterScripts ( ) : void

Registers the scripts used on this page, for the cascading dropdown behavior.

SelectArticle ( ) : void

Selects the current article in the ArticlesDropDownList, if this is the first time loading the page and there is an article to select

SelectCategory ( ) : void

Selects the current category in the CategoriesDropDownList, if this is the first time loading the page and there is a category to select

Method Details

OnInit() protected méthode

Raises the ModuleBase.Init event.
protected OnInit ( EventArgs e ) : void
e EventArgs The instance containing the event data.
Résultat void

Property Details

ArticlesDropDownList protected_oe property

ArticlesDropDownList control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.HtmlControls.HtmlSelect ArticlesDropDownList
Résultat global::System.Web.UI.HtmlControls.HtmlSelect

CategoriesDropDownList protected_oe property

CategoriesDropDownList control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.DropDownList CategoriesDropDownList
Résultat global::System.Web.UI.WebControls.DropDownList