C# Class App_Code.Controls.WidgetZone

The widget zone.
Inheritance: System.Web.UI.WebControls.PlaceHolder
Datei anzeigen Open project: rasmuskl/ReSharperCourse

Private Properties

Property Type Description
OnZonesUpdated void
RetrieveXml System.Xml.XmlDocument
WidgetZone System

Public Methods

Method Description
PreloadWidgetsAsync ( string zoneName ) : void

This method is intended to be called once during FirstRequestInitialization right before LoadExtension() which is another time consuming routine. By preloading the widgets asyncronously in this method, this time consuming work is done in a manner that reduces the time to load the first page.

Protected Methods

Method Description
OnInit ( EventArgs e ) : void

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

OnLoad ( EventArgs e ) : void

Raises the event.

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

Sends server control content to a provided object, which writes the content to be rendered on the client.

Private Methods

Method Description
OnZonesUpdated ( ) : void

Called when [zones updated].

RetrieveXml ( string zoneName ) : XmlDocument

Retrieves the XML.

WidgetZone ( ) : System

Initializes static members of the WidgetZone class.

Method Details

OnInit() protected method

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

OnLoad() protected method

Raises the event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs /// The object that contains the event data. ///
return void

PreloadWidgetsAsync() public static method

This method is intended to be called once during FirstRequestInitialization right before LoadExtension() which is another time consuming routine. By preloading the widgets asyncronously in this method, this time consuming work is done in a manner that reduces the time to load the first page.
public static PreloadWidgetsAsync ( string zoneName ) : void
zoneName string Typically "be_WIDGET_ZONE"
return void

Render() protected method

Sends server control content to a provided object, which writes the content to be rendered on the client.
protected Render ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter /// The object /// that receives the server control content. ///
return void