The System.Web.UI.Control class is the base class for all server controls. This provides the properties, methods, and events shared by all web controls. The System.Web.UI.WebControls.WebControl class derives from the Control class and adds style properties such as Font, Forecolor, and Backcolor.
Microsoft recommends:
1. if your custom control contains no user interface elements then derive from Control Class.
2. if your custom control provides a user interface, then derive from WebControl class.
12/28/2009
Which is better: Control or WebControl?
1:55 PM
Bhavik Shah
No comments
0 comments:
Post a Comment