Creating custom controls - VS2005 ASP.NET 2.0 RRS feed

  • Question

  • I'll ask the question here in case this message is moved.

    If I want to create a custom control (for a web page) with several web server controls on it, eg: textboxes and buttons, how do I know what class to inherit from: (a) web,UI.Control, (b) Web.UI.Controls.CompositeControls, (c) Web.UI.WebControls.WebControl, or (d) Web.UI.UserControl?

    It would help to know what the differences are between inheriting from these classes. I have a book about it, but ots almost all procedure and code, and little theory.
    Friday, December 5, 2008 8:35 PM