Re: Help casting a dynamic user control to the type i need

Tech-Archive recommends: Fix windows errors by optimizing your registry



It appears the following code works:

MyPlaceHolder.Controls.Add(LoadControl("AddTestReferralTestData.ascx"));
AddTestReferralTestData refControl =
(AddTestReferralTestData)MyPlaceHolder.Controls[i];


.