I
Ian Frawley
Hi all,
I am trying to create a number of System.Web.UI.WebControls on the fly
depending on config info so I did this
Type type = Type.GetType("System.Web.UI.WebControls." + row.ObjectType);
System.Web.UI.Control temp =
(System.Web.UI.Control)Activator.CreateInstance(type);
But unfortunatley type is always null. I have started looking into
reflection and got a bit lost has anyone done this sort of thing before?
Cheers
I am trying to create a number of System.Web.UI.WebControls on the fly
depending on config info so I did this
Type type = Type.GetType("System.Web.UI.WebControls." + row.ObjectType);
System.Web.UI.Control temp =
(System.Web.UI.Control)Activator.CreateInstance(type);
But unfortunatley type is always null. I have started looking into
reflection and got a bit lost has anyone done this sort of thing before?
Cheers