Page Controls

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RicercatoreSbadato

    Page Controls

    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 - programmaticall y - all the controls in the page, how can I
    do ?

    if I use

    this.Controls

    i don't see my UserControls..

    any ideas ?

  • Kevin Spencer

    #2
    Re: Page Controls

    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/lib...ge.master.aspx

    --
    HTH,

    Kevin Spencer
    Microsoft MVP

    Printing Components, Email Components,
    FTP Client Classes, Enhanced Data Controls, much more.
    DSI PrintManager, Miradyne Component Libraries:


    "RicercatoreSba dato" <emailsolidale@ yahoo.itwrote in message
    news:1180009851 .812783.165310@ q69g2000hsb.goo glegroups.com.. .
    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 - programmaticall y - all the controls in the page, how can I
    do ?
    >
    if I use
    >
    this.Controls
    >
    i don't see my UserControls..
    >
    any ideas ?
    >

    Comment

    Working...