G
Guest
I am trying to load a web user control from code behind. This used to be
something simple in .net 1.1
Dim myControl As ControlName = CType(Page.LoadControl("ControlName .ascx"),
ControlName )
you would then have access to that controls properties, both custom and
inherited. But this doesn't work in asp.net 2.0. You can't use the control
name to access the control dynamically.
Any ideas, or suggestions?
something simple in .net 1.1
Dim myControl As ControlName = CType(Page.LoadControl("ControlName .ascx"),
ControlName )
you would then have access to that controls properties, both custom and
inherited. But this doesn't work in asp.net 2.0. You can't use the control
name to access the control dynamically.
Any ideas, or suggestions?