Page Controls

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 ?
 
K

Kevin Spencer

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top