Derive from System.Web.UI.WebControls.Panel

Discussion in 'ASP .Net Web Controls' started by David Smith via .NET 247, May 5, 2004.

  1. I would like to create a user control that derives fromSystem.Web.UI.WebControls.Panel and shows up at design time likea Panel so I can drop other controls into it. The customercontrol will have my content border so that I can easilyseperate content HTML from control HTML.

    Thanks for all your help,


    --------------------------------
    From: David Smith

    -----------------------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>nNVXT5AqM0y4+ZJsdk9p1A==</Id>
     
    David Smith via .NET 247, May 5, 2004
    #1
    1. Advertising

  2. David Smith via .NET 247 <> wrote in
    news::
    > I would like to create a user control that derives from
    > System.Web.UI.WebControls.Panel and shows up at design time like a Panel
    > so I can drop other controls into it. The customer control will have my
    > content border so that I can easily seperate content HTML from control
    > HTML.


    User controls are special container controls. They dont just descend from
    anything. Do you want a user control or a custom control?

    If you want a user control, declare a new user control and put a panel on it.


    --
    Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
    "Programming is an art form that fights back"

    Get your ASP.NET in gear with IntraWeb!
    http://www.atozed.com/IntraWeb/
     
    Chad Z. Hower aka Kudzu, May 6, 2004
    #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. Matt
    Replies:
    2
    Views:
    888
    Matt Getting
    Jul 24, 2003
  2. ABC
    Replies:
    1
    Views:
    2,675
    Larry
    Oct 4, 2005
  3. kito
    Replies:
    2
    Views:
    526
  4. Andy B
    Replies:
    2
    Views:
    3,283
    Andy B
    Apr 23, 2008
  5. Ray
    Replies:
    0
    Views:
    197
Loading...

Share This Page