OOP Inherit question

bungpeng

Well-known member
Joined
Sep 10, 2002
Messages
906
Location
Malaysia
Is there possible I can have a standard maintenance screen, so if any new maintenance screen, I can inherit from my standard screen?

basic layout and simple validation are in this standard screen... can it be done?
 
Yes, it can. Create your code-behind in such a fashion that it can easily be customized by any page that derives from it. Then, use the Page directives Inherits attribute to obtain the code-behinds functionability on each page in question.

Code:
<%@ Page Inherits="MyNamespace.MyClass" %>
 
Back
Top