I found a couple ways of creating the instance and there are probably more. I am not sure which is the better code to use or if it even makes a difference. I will probably use the ObjectHandle method as it would allow me to package the controls in a different Assembly...
Thanks for the help. Here is the code if anyone else has the same question...
Code:Dim handle As System.Runtime.Remoting.ObjectHandle Dim ctl As System.Web.UI.WebControls.WebControl handle = System.Activator.CreateInstance(Nothing, "wssList") ctl = handle.Unwrap Controls.Add(ctl) Dim oType As System.Type Dim ctl As System.Web.UI.WebControls.WebControl oType = Type.GetType("wssList", True, True) ctl = System.Activator.CreateInstance(oType) Controls.Add(ctl)




Reply With Quote