K
keith
I use this code to load a user control at runtime:
Control c = Page.LoadControl(Request.ApplicationPath +
"/User_Controls/website_design.ascx");
UserControlPlaceHolder.Controls.Add(c);
Immediately after loading the control, I need to set a property of the user
control.
I have tried various ways of directly referencing the control without
success. I have also tried using FindControl, but all I get is a null value.
Any suggestions?
Thanks,
Keith
Control c = Page.LoadControl(Request.ApplicationPath +
"/User_Controls/website_design.ascx");
UserControlPlaceHolder.Controls.Add(c);
Immediately after loading the control, I need to set a property of the user
control.
I have tried various ways of directly referencing the control without
success. I have also tried using FindControl, but all I get is a null value.
Any suggestions?
Thanks,
Keith