try something like this
foreach (Control c in this.Controls)
{
if (c.GetType().ToString().Equals("System.Web.UI.WebC ontrols.TextBox")
{
// ...do something...
}
}
--
Regards
John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------
"Vik" <viktorum@==yahoo.com==> wrote in message
news:OQ**************@TK2MSFTNGP10.phx.gbl...
Is there enumeration for the WebControls?
Thanks.