How to "cast" a Control var referencing a Web User Control
Posted on 2007-11-20
I know that I can do this in order to add a Web User Control to a PlaceHolder at runtime:
Control c = LoadControl("..\\scripts\\controls\\FUWStepMonitor\\FUWStepMonitor.ascx");
but afterwards, how do I reference the control inside the collection, such that I can get to the public methods of the Web User Control?
(( cast ??? } msgbox.Controls.FindControl[ ??? ]). some public method ( )