Click here to Skip to main content
15,899,026 members
Articles / Web Development / ASP.NET

Getting All Controls in an ASP.NET Page

10 Dec 2009CPOL 3.2K   3   2
Call AllControls to retrieve an enumerator over all controls in the page, including controls within controls (such as controls within a panel). The function itself doesn't iterate over any enumeration. private IEnumerable AllControls() { var topLevel =...
Only logged in members can view this content

Please go to the ASP.NET Table of Contents to view the list of available articles in this section.