S
Stijn Vrancken via .NET 247
I'm loading 3 usercontrols (.ascx) in a container page (.aspx)
When I load them like this :
//-----------
HtmlForm Form1 = (HtmlForm)Page.FindControl("Form1");
Form1.Controls.AddAt(0, LoadControl( "UserControls/AdminHeader.ascx" ) );
TD1.Controls.Add( LoadControl( "Downloads/UserControls/DownloadManager.ascx" ) );
Form1.Controls.Add( LoadControl( "UserControls/AdminFooter.ascx" ) );
//-----------
The pageLoad event on DownloadManager.ascx gets fired, but not the Edit, Update or Delete Datagrid events?
When I only load DownloadManager.ascx everything works fine ?
TD1.Controls.Add( LoadControl( "Downloads/UserControls/DownloadManager.ascx" ) );
Why are the events lost when loading multiple controls ?
When I load them like this :
//-----------
HtmlForm Form1 = (HtmlForm)Page.FindControl("Form1");
Form1.Controls.AddAt(0, LoadControl( "UserControls/AdminHeader.ascx" ) );
TD1.Controls.Add( LoadControl( "Downloads/UserControls/DownloadManager.ascx" ) );
Form1.Controls.Add( LoadControl( "UserControls/AdminFooter.ascx" ) );
//-----------
The pageLoad event on DownloadManager.ascx gets fired, but not the Edit, Update or Delete Datagrid events?
When I only load DownloadManager.ascx everything works fine ?
TD1.Controls.Add( LoadControl( "Downloads/UserControls/DownloadManager.ascx" ) );
Why are the events lost when loading multiple controls ?