Groups | Blog | Home
all groups > asp.net webcontrols > may 2005 >

asp.net webcontrols : Type.GetType("System.Web.UI....)



Mythran
5/25/2005 3:50:24 PM

[quoted text, click to view]

Why not GetType(System.Web.UI.WebControls.TextBox)? Do you have to pass it
a string?

Mythran
TR
5/25/2005 6:40:58 PM
Is it possible to use Type.GetType(...) with the types in the
System.Web.UI.? My attempts always resolve to Nothing.

Is this legal, or is the Web.UI assembly of the kind Type.GetType doesn't
work with?
Type.GetType("System.Web.UI.WebControls.TextBox", False, True)

Thanks
TR

TR
5/25/2005 7:17:32 PM
Mythran,
I'm trying to write a generic routine to find all controls of a specified
type. But even so, if I do what you suggest, I get the error that
Checkbox|TextBox|etc "is a type in 'WebControls' and cannot be used as an
expression".
Regards
TR

[quoted text, click to view]

AddThis Social Bookmark Button