Hi,
I have a newbie question for
(ASP.Net 2.0 framework) which is based on Design Pattern / Coding Trick
--> I need to :-
- Inherit one aspx page and its code (super abstract class) that in turn inherits System.Web.UI.Page
such that this page servers a base model for other aspx pages
--> Constraints
-- Want only Aspx page and not Code Page (like Base Class) !!!
Reason :- since the above abstract page is having user controls and points to the master page.
-- No Interface !!!
I dont want to implement this page as an Interface since there are some methods that will have the same code when overridden by the classes / aspx pages that may be implementing it causing duplicate code
So, an Abstract class model with abstract methods looks favorable
-- .Net only permits for single-level inheritance model
--> Some of the ways that I looked into are
-> Defining a Master Page ... but not sure about master page inheritence and this approach is not I like to have
-> Having a User Control .... which will have embedded user controls and loss of page theming ...
-> Thinking of having a base class ... which will define the aspx and html controls in the code .. not sure about this approach
--> Is there any better way of preserving the theme as well as achive some sort of multiple or 2 level inheritance with a better approach in ASP.Net 2.0 ?
(please correct me if I am missing something / Wrong)