I need to know howmany controls i have in the page
I have tried the following options :
can anyone give an idea ...how the job can be done ???
for (int i=0;i<Page.Controls.Count;i++)
{
Response.Write(Page.Controls[i].ClientID.ToString() + "<br>");
Response.Write(Page.Controls[i].UniqueID.ToString()+ "<br>" );
}
foreach (Control ctrl in Page.Controls)
{
Response.Write(ctrl.ClientID.ToString() + "<br>") ;
Response.Write(ctrl.GetType().ToString() + "<br>" ) ;
}
Arindam Chakraborty
Software Developer,
Mumbai,
India
---------------------------------
Yahoo! India Matrimony: Find your partner now.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/