I need to create a .NET control (in ASP.NET) from a string that represents the control’s name.
Control myList = SomeSystemClass.GetControlByName("DropDownList");
I guess there is some reflection method in the .NET platform that allows this but I have no idea which one. Any ideas?
For Server Controls:
Or more specifically for your example:
For User Controls: