Version

OnInit Method (WebTab)

Ensure templates. Note: that is required to support controls which rely on processing Page.Load/Complete event. For example, WebDatePicker can create shared calendar only if it gets Page.LoadComplete. But default logic of dot-net creates child control within OnPreRender, which is too late for WebDatePicker.
Syntax
'Declaration
 
Protected Overrides Sub OnInit( _
   ByVal e As EventArgs _
) 
protected override void OnInit( 
   EventArgs e
)

Parameters

e
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also