protected override void OnInit(EventArgs e)
{
base.OnInit(e);
this.EnsureChildControls();
if (this.DesignMode)
{
this.RegisterBeforeAfterScript();
}
else
{
if (this.Page != null)
{
this.Page.PreLoad += PagePreLoad;
this.Page.LoadComplete += PageLoadComplete;
}
}
this.AllowCallbackScriptMonitoring = true;
}