Control class design question

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
 
K

Kevin Spencer

If I understand you correctly, that would be a MasterPage.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top