C# Class GSoft.Dynamite.Examples.Parts.BasicWall.BasicWallUserControl

Basic wall user control
Inheritance: System.Web.UI.UserControl
ファイルを表示 Open project: GSoft-SharePoint/Dynamite-2010

Protected Properties

Property Type Description
NewPost global::System.Web.UI.WebControls.TextBox
NewPostSubmit global::System.Web.UI.WebControls.Button
PostRepeater global::System.Web.UI.WebControls.Repeater

Public Methods

Method Description
BasicWallUserControl ( ) : System

Constructor to initialize dependency

Protected Methods

Method Description
NewPostButton_Click ( object sender, EventArgs e ) : void

Fires when the NewPost button is clicked

Page_Load ( object sender, EventArgs e ) : void

Fires at page load

PostRepeater_ItemCommand ( object source, System.Web.UI.WebControls.RepeaterCommandEventArgs e ) : void

Fires when on of the NewReply buttons is clicked

PostRepeater_ItemDataBound ( object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e ) : void

Fires when a wall post is databound

TagsHtml ( object dataItem ) : string

Builds the Html for rendering tags

Private Methods

Method Description
FetchAndBind ( ) : void

Method Details

BasicWallUserControl() public method

Constructor to initialize dependency
public BasicWallUserControl ( ) : System
return System

NewPostButton_Click() protected method

Fires when the NewPost button is clicked
protected NewPostButton_Click ( object sender, EventArgs e ) : void
sender object Origin of event
e System.EventArgs Event arguments
return void

Page_Load() protected method

Fires at page load
protected Page_Load ( object sender, EventArgs e ) : void
sender object Origin of event
e System.EventArgs Event arguments
return void

PostRepeater_ItemCommand() protected method

Fires when on of the NewReply buttons is clicked
protected PostRepeater_ItemCommand ( object source, System.Web.UI.WebControls.RepeaterCommandEventArgs e ) : void
source object Origin of event
e System.Web.UI.WebControls.RepeaterCommandEventArgs Event arguments
return void

PostRepeater_ItemDataBound() protected method

Fires when a wall post is databound
protected PostRepeater_ItemDataBound ( object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e ) : void
sender object Origin of event
e System.Web.UI.WebControls.RepeaterItemEventArgs Event arguments
return void

TagsHtml() protected method

Builds the Html for rendering tags
protected TagsHtml ( object dataItem ) : string
dataItem object The object with tags
return string

Property Details

NewPost protected_oe property

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

NewPostSubmit protected_oe property

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

PostRepeater protected_oe property

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