Inheriting another pages onLoad event
Hi, I have a page that does a whole lot of stuff in its onLoad event.
What I was wondering if it is possible to inherit this page (And therefore it functionality) in a new page and utilise the existing onLoad event of the inherited page by overriding the onLoad event of the new page.
Or, is it best that I just package all the existing functionality in a new class and use it that way even though webforms are actually classes....
I tried to specify two classes to inherit but I get an error message saying that I can only inherit a single class and its functionality.
Code:
' I thought that I could do this and get the code behind page to inherit both the webform that it is associated with and another webform
Public Class contact
Inherits System.Web.UI.Page
Inherits ProjectName.PageName
Ideas welcome, regards
MarkusJ