C# Class Rock.Web.UI.Controls.Toggle

Inheritance: System.Web.UI.WebControls.CompositeControl, IRockControl
Show file Open project: NewSpring/Rock Class Usage Examples

Private Properties

Property Type Description
RegisterJavascript void

Public Methods

Method Description
RenderBaseControl ( System.Web.UI.HtmlTextWriter writer ) : void

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.

RenderControl ( System.Web.UI.HtmlTextWriter writer ) : void

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.

Toggle ( ) : System

Initializes a new instance of the Toggle class.

Protected Methods

Method Description
CreateChildControls ( ) : void

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.

OnLoad ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Load event.

btnOnOff_ServerClick ( object sender, EventArgs e ) : void

Handles the ServerClick event of the btnOnOff control.

Private Methods

Method Description
RegisterJavascript ( ) : void

Registers the javascript.

Method Details

CreateChildControls() protected method

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
protected CreateChildControls ( ) : void
return void

OnLoad() protected method

Raises the E:System.Web.UI.Control.Load event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs The object that contains the event data.
return void

RenderBaseControl() public method

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.
public RenderBaseControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The object that receives the control content.
return void

RenderControl() public method

Outputs server control content to a provided T:System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.
public RenderControl ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The object that receives the control content.
return void

Toggle() public method

Initializes a new instance of the Toggle class.
public Toggle ( ) : System
return System

btnOnOff_ServerClick() protected method

Handles the ServerClick event of the btnOnOff control.
protected btnOnOff_ServerClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void