WebControl vs. Control RRS feed

  • Question

  • User1812098621 posted

    What's the difference between a WebControl and a Control and a UserControl? 

    Friday, March 14, 2008 3:20 AM


  • User541108374 posted


    Control is the ultimate class from which the other 2 inherit. WebControl's mostly used when people want to create custom controls that have more visual stuff to show like a textbox or a button while you would use Control to base your custom control upon to create non visual controls like the Xml control.

    User controls can be designed in an IDE visually while the other 2 can't and should be crafted together with code only. A user control on the other hand can't be packaged into an assembly so the reuse of it is much less and only inside your current project/solution.

    Grz, Kris.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 14, 2008 5:32 AM