dim type as Type =Type.GetType("YOUR STRING")
if not type is nothing then
dim txt as TextBox = ctype(Activator.CreateInstance(type), Type)
end if
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
<qu*******@resolutionsnet.co.uk> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Can anyone offer any advice or point me in a direction of help.
I would like to be able to load a give webcontrol, say a TextBox from
it's type (which would be stored in either XML or SQL).
For example,
TextBox =
"System.Web.UI.WebControls.TextBox, System.Web, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Thank you
Tony