Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Ibthaj Mansour   on Sep 16 In Asp.net Category.

  
Question Answered By: Jaime Bowman   on Sep 16

Just incase this thread ends up at some dev site then the answer better be added
eh ?

We've been iterating through the page  controls, when we add a control to a page
in designer it i added to the FORM control

So we need to iterate through that (in code  below this refers to the page)


foreach (System.Web.UI.Control c in this.Controls)
{
foreach (System.Web.UI.Control c2 in c.Controls)
{
Response.Write(c2.UniqueID + " " + c2.GetType().ToString() + "<br>");
}
}

Share: