void Page_LoadComplete(object sender, EventArgs e)
{
if (this.ParentComponent == null || (RequestManager.IsMicrosoftAjaxRequest && !this.IsInUpdatePanelRefresh))
{
return;
}
Component parent = this.ParentComponent;
if (parent != null)
{
parent = this.ParentComponent;
while (parent != null && (parent.IsLazy || parent.IsLayout))
{
parent = parent.ParentComponent;
}
}
if (parent != null)
{
parent.BeforeClientInit += Parent_BeforeClientInit;
}
}