Webform inheritance?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

Since there is no 'WebForm inheritance', what r the ways we could create a base template webform, which the other forms could use

Thanks in advance
Benn
 
I guess that depends on what you are trying to build.

In my current application, we have modified all the WebForms to inherit from
the a custom class which in turn inherits from System.Web.UI.Page.

This allowed us to nicely encapsulate a bunch of the code-behind
functionality that was common to the entire site.

-Naraen

---
Benny said:
Hi,

Since there is no 'WebForm inheritance', what r the ways we could create a
base template webform, which the other forms could use?
 
Yes, that is true. But what in the case of visual inheritance. For example, I want my derived pages to inherit a set of common controls etc. In that case, what could I do

Thanks a lot
Benn
 
Don't think you can do it in VS.NET 2003. The next version of the framework
supports this. I think the concept is called "Master Page".

Until then I think the only choice is to use composition.

-Naraen

---
Benny said:
Yes, that is true. But what in the case of visual inheritance. For
example, I want my derived pages to inherit a set of common controls etc. In
that case, what could I do?
 
Back
Top