C# Class Engage.Dnn.F3.ViewLinks

Allows the user to search for content in either module and to replace values once found
Inheritance: DotNetNuke.Entities.Modules.PortalModuleBase
Datei anzeigen Open project: EngageSoftware/Engage-F3

Protected Properties

Property Type Description
AllPortalsCheckBox global::System.Web.UI.WebControls.CheckBox
PublishResultsGrid global::System.Web.UI.WebControls.GridView
ReplacePublishButton global::System.Web.UI.WebControls.Button
ReplaceTextHtmlButton global::System.Web.UI.WebControls.Button
ReplacementPanel global::System.Web.UI.WebControls.Panel
ReplacementResultsLabel global::System.Web.UI.WebControls.Label
ReplacementTextBox global::System.Web.UI.WebControls.TextBox
ResultsGrid global::System.Web.UI.WebControls.GridView
SearchPublishButton global::System.Web.UI.WebControls.Button
SearchTextBox global::System.Web.UI.WebControls.TextBox
SearchTextHtmlButton global::System.Web.UI.WebControls.Button

Protected Methods

Method Description
BindPublishData ( string searchValue ) : void
BindTextHtmlData ( string searchValue ) : void
CleanupText ( string text, bool encodeText ) : string
GetPublishViewLink ( int itemId ) : string
GetTextHtmlModuleEditLink ( int moduleId, int tabId ) : string
OnInit ( EventArgs e ) : void

Raises the Control.Init event.

Private Methods

Method Description
CreateHtmlTextController ( ) : IHtmlTextModuleController

Creates an instance of the HTML/Text module's controller.

CreateNewTextHtmlVersion ( string searchValue, string replacementValue, int moduleId, int tabId, int portalId, string content ) : void

Creates the new version of the Text/HTML content for the module with the given ID, with searchValue replaced by replacementValue.

Page_Load ( object sender, EventArgs e ) : void

Handles the Control.Load event of this control.

ReplacePublishButton_Click ( object sender, EventArgs e ) : void

Handles the Button.Click event of the ReplacePublishButton control.

ReplaceTextHtmlButton_Click ( object sender, EventArgs e ) : void

Handles the Button.Click event of the ReplaceTextHtmlButton control.

SearchPublishButton_Click ( object sender, EventArgs e ) : void

Handles the Button.Click event of the SearchPublishButton control.

SearchTextHtmlButton_Click ( object sender, EventArgs e ) : void

Handles the Button.Click event of the SearchTextHtmlButton control.

ShowResults ( bool showPublish ) : void

Shows the proper results grid and the ReplacementPanel, resetting its display and showing either the Text/HTML results and buttons.

Method Details

BindPublishData() protected method

protected BindPublishData ( string searchValue ) : void
searchValue string
return void

BindTextHtmlData() protected method

protected BindTextHtmlData ( string searchValue ) : void
searchValue string
return void

CleanupText() protected static method

protected static CleanupText ( string text, bool encodeText ) : string
text string
encodeText bool
return string

GetPublishViewLink() protected static method

protected static GetPublishViewLink ( int itemId ) : string
itemId int
return string

GetTextHtmlModuleEditLink() protected static method

protected static GetTextHtmlModuleEditLink ( int moduleId, int tabId ) : string
moduleId int
tabId int
return string

OnInit() protected method

Raises the Control.Init event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
return void

Property Details

AllPortalsCheckBox protected_oe property

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

PublishResultsGrid protected_oe property

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

ReplacePublishButton protected_oe property

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

ReplaceTextHtmlButton protected_oe property

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

ReplacementPanel protected_oe property

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

ReplacementResultsLabel protected_oe property

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

ReplacementTextBox protected_oe property

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

ResultsGrid protected_oe property

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

SearchPublishButton protected_oe property

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

SearchTextBox protected_oe property

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

SearchTextHtmlButton protected_oe property

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