Getting All Controls On The ASP.NET Page(vaultofthoughts.net)

submitted by mikeonmikeon(5200) 4 years, 7 months ago

How to get all controls on a page in a recursive way - FlattenHierarchy method and what you can do with it.

1 comment |category: |Views: 97

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by wyattwongwyattwong(0) 3 years, 9 months ago 0

The FlattenHierachy function is quite good, except that when the ASP.NET is a child page of a Master Page, then those controls in the Master Page cannot be located by FlattenHierachy function. If the Master Page is nested, then the problem is even more obvious.

Reply

information Login or create an account to comment on this story