|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Type.GetType("System.Web.UI....)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" <T*@nowhere.biz> wrote in message Why not GetType(System.Web.UI.WebControls.TextBox)? Do you have to pass it news:%23hkbRrXYFHA.2288@TK2MSFTNGP14.phx.gbl... > 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 > > a string? Mythran 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 Show quoteHide quote "Mythran" <kip_potter@hotmail.comREMOVETRAIL> wrote in message news:O9OckwXYFHA.2508@TK2MSFTNGP15.phx.gbl... > > "TR" <T*@nowhere.biz> wrote in message > news:%23hkbRrXYFHA.2288@TK2MSFTNGP14.phx.gbl... > > 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 > > > > > > Why not GetType(System.Web.UI.WebControls.TextBox)? Do you have to pass it > a string? > > Mythran >
DATASET DATAGRID ITEMINDEX DATASETINDEX
asp.net custom server control not showing when dragged onto web fo How can I get selected Checklistbox Items to Literal in Placeholde FindControl by type? ASP.NET Tree View Control Web server controls not shown on a web form Datagrid Listbox please help Problem using Response.Redirect from a User Control Checkbox within a datalist VB.NET Compact Framework |
|||||||||||||||||||||||