Hi,
I've hooked the pages OnLoadCOmplete event to fire for a custom control, however when the code fires the control's page property in null? Any ideas why this would be.
My control's OnInit looks as follows:
if ( this.Page != null )
{
this.Page.LoadComplete += new EventHandler( this.LoadCompleteEventHandler );
}The handler is as follows:
private void LoadCompleteEventHandler( object sender, EventArgs e )
{
this.Page.Trace.Write( "XXX", "OnLoadComplete" );
}However the trace fails as this.Page is null.
Thanks
Donal