G
Guest
Hi,
We have a base class that is derived from System.Web.UI.Page that we we are
using for all pages in a project. The same exists for UserControl. Now we are
going to implement a few MasterPages and we are looking for a good way of
avoiding more duplicated code. Our problem is that MasterPage inherits
UserControl, Page is derived from TemplateControl and the same with
UserControl.
How can we create a base class (in VB.NET) that can handle common OnLoad,
OnInit etc logic for all these types without code duplication?
Many thanks,
Manso
We have a base class that is derived from System.Web.UI.Page that we we are
using for all pages in a project. The same exists for UserControl. Now we are
going to implement a few MasterPages and we are looking for a good way of
avoiding more duplicated code. Our problem is that MasterPage inherits
UserControl, Page is derived from TemplateControl and the same with
UserControl.
How can we create a base class (in VB.NET) that can handle common OnLoad,
OnInit etc logic for all these types without code duplication?
Many thanks,
Manso