Wednesday, April 27, 2005

Creating base class for pages and user controls

I read a very interesting article by Scott Mitchel about creating base pages for inheriting common functionality.
This can also be used for user controls. What you do is you create a base class which inherits from the UserControl class. Next every user control you make should inherit from the base class that you made. By inherting from the base class you can have all the functionality of the base class. You can use the base class to have the features that you want in every UserControl.

No comments: