Page Controls

  • Thread starter Thread starter RicercatoreSbadato
  • Start date Start date
R

RicercatoreSbadato

hi all
i'm using asp.net 2 and the master page paradigm

in another page .aspx - that inherit from the master page - i'd like
to has - programmatically - all the controls in the page, how can I
do ?

if I use

this.Controls

i don't see my UserControls..

any ideas ?
 
I'm not sure what you're asking here, because you say the page "inherits"
the MasterPage, but typically, a page id bound to a MasterPage, rather then
inheriting it. If this is what you mean, every page that is bound to a
MasterPage has a "Master" property, through which you can access the
MasterPage. Then, you expose any Controls in the MasterPage via public
properties.

See http://msdn2.microsoft.com/en-us/library/system.web.ui.page.master.aspx

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 
Back
Top