Hi,
try this:
ArrayList textboxArray = new ArrayList();
foreach(Control control in this.Controls)
if ( control.GetType() == typeof( TextBox) )
textboxArray.Add( control );
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Luboš Šlapák" <lu**********@centrum.cz> wrote in message
news:ud**************@TK2MSFTNGP15.phx.gbl...
I don't know how to check it for control's type.
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> píše
v diskusním příspěvku news:Ov**************@TK2MSFTNGP15.phx.gbl... Hi,
One thing you can do is iterate in the Page.Controls checking for the
control's type and storing them in an array
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Luboš Šlapák" <lu**********@centrum.cz> wrote in message
news:Oz**************@tk2msftngp13.phx.gbl... Hi,
I need from ControlCollection on aspx page select all TextBoxes.
How can I do it?
Thanks