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

ファイルを表示 Open project: EngageSoftware/Engage-Publish

Protected Properties

Property Type Description
ArticlesDropDownList global::System.Web.UI.HtmlControls.HtmlSelect
CategoriesDropDownList global::System.Web.UI.WebControls.DropDownList

Private Properties

Property Type Description
CategoriesDropDownListSelectedIndexChanged void
FillArticlesDropDown void
FillCategoryDropDown void
GetArticleId int?
Page_Load void
RegisterScripts void
SelectArticle void
SelectCategory void

Protected Methods

Method Description
OnInit ( EventArgs e ) : void

Raises the ModuleBase.Init event.

Private Methods

Method 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 method

Raises the ModuleBase.Init event.
protected OnInit ( EventArgs e ) : void
e EventArgs The instance containing the event data.
return 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
return 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
return global::System.Web.UI.WebControls.DropDownList