G
Hi,
[using asp.net 2.0 framework]
I'm using loadControl to load an ascx into a variable.
This works ok but I'm having to load the control into an Object
variable
e.g.
Dim aWidget As Object = Me.LoadControl("/assets/components/
Widget.ascx")
I'd like to be able to load it into a variable of the proper type so I
can set properties.
I'm pretty sure I could do this with the 1.1 framework simply by
changing the ascx class to public, but this doesn't work with 2.0
Many thanks,
[using asp.net 2.0 framework]
I'm using loadControl to load an ascx into a variable.
This works ok but I'm having to load the control into an Object
variable
e.g.
Dim aWidget As Object = Me.LoadControl("/assets/components/
Widget.ascx")
I'd like to be able to load it into a variable of the proper type so I
can set properties.
I'm pretty sure I could do this with the 1.1 framework simply by
changing the ascx class to public, but this doesn't work with 2.0
Many thanks,