Controls in Page

D

dawid.greyvenstein

I have a Page with master page and a couple of server side controls in
the ContentPlaceHolder. I want to iterate through all the controls on
the page. I try to do this in the Page.Load event, but the only control
I get in this.Controls is the master page. How can I get access to the
other controls?

Any help welcome.
 
D

dawid.greyvenstein

I found it in a HtmlForm control in the master page's child controls.
The reason I couldn't find it in the first place, was because of a bug
in my recursive code. My bad.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top