When to use Panel or Placeholder Controls??

Discussion in 'ASP .Net Web Controls' started by SortaNorth, Nov 11, 2003.

  1. SortaNorth

    SortaNorth Guest

    I'm trying to determine when it is appropriate to use a placeholder control
    as opposed to a panel control. With all the documentation I have seen they
    sound like they do the same thing. One text describes the placeholder as
    allowing you to add controls dynamically and the next example it gives uses
    the panel to add controls dynamically. How do I know when to use which most
    effectively?

    Thanks for any insights here!

    Dick
    SortaNorth, Nov 11, 2003
    #1
    1. Advertising

  2. SortaNorth

    Teemu Keiski Guest

    Hi,

    Difference is that PlaceHolder is replaced by the added controls and there's
    no indication in rendering that those controls are inside a PlaceHolder but
    with Panel they appear inside <DIV> element (Panel is rendered as <DIV>).

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist


    "SortaNorth" <> wrote in message
    news:w8csb.127191$ao4.391953@attbi_s51...
    > I'm trying to determine when it is appropriate to use a placeholder

    control
    > as opposed to a panel control. With all the documentation I have seen

    they
    > sound like they do the same thing. One text describes the placeholder as
    > allowing you to add controls dynamically and the next example it gives

    uses
    > the panel to add controls dynamically. How do I know when to use which

    most
    > effectively?
    >
    > Thanks for any insights here!
    >
    > Dick
    >
    >
    >
    Teemu Keiski, Nov 12, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. bdwise

    Panel PlaceHolder Div Difference?

    bdwise, Feb 23, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    6,920
    Tommy
    Feb 24, 2004
  2. TJS

    panel / placeholder problem

    TJS, Sep 2, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    471
  3. Don Wash
    Replies:
    2
    Views:
    4,756
    Don Wash
    Sep 7, 2004
  4. =?Utf-8?B?Sm9l?=

    .NET Panel vs. Placeholder controls

    =?Utf-8?B?Sm9l?=, May 8, 2007, in forum: ASP .Net
    Replies:
    6
    Views:
    2,515
    David
    May 8, 2007
  5. nail

    Build control in a placeholder or like a placeholder

    nail, Sep 10, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    331
Loading...

Share This Page