Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Panel control derived from WebControl

Panel control derived from WebControl

Scheduled Pinned Locked Moved ASP.NET
designsysadmintutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Simon_uk
    wrote on last edited by
    #1

    Hi all, I'm trying to create a custom web control which inherits directly from WebControl. I would like to be able to drop other server controls onto this in the WebForm designer, in the same way you can with System.Web.UI.WebControls.Panel. I know it's something to do with Parse/PersistChildren attributes, but I can't figure it out!! Anyone know how to do this? Thanks in advance, Simon. :)

    T 1 Reply Last reply
    0
    • S Simon_uk

      Hi all, I'm trying to create a custom web control which inherits directly from WebControl. I would like to be able to drop other server controls onto this in the WebForm designer, in the same way you can with System.Web.UI.WebControls.Panel. I know it's something to do with Parse/PersistChildren attributes, but I can't figure it out!! Anyone know how to do this? Thanks in advance, Simon. :)

      T Offline
      T Offline
      The Orange Rider
      wrote on last edited by
      #2

      The way I would try to do it is by making a templated control along with a designer class for the control. If you have access to Kothari and Datye's book, "Developing ASP.NET Server Controls and Components", they have an example of a templated control starting on page 321 and later make a designer class for this control on page 386. hth, Orange

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups