W
WFB
Hi,
I have a base class from which all of my pages derive (ABCBasePage). For
example, ABCCustomerSelect Inherits ABCPasePage. I would now like to have
ABCPocketSelect which should inherit from ABCCustomerSelect. My problem is
that when ABCPocketSelect is loaded the Page_Load event in ABCBasePage is
called, followed by the load event for ABCCustomerSelect - and I would like
to skip the ABCCustomerSelect load event..
My basic code is as follows:
Public Class ABCBasePage : Inherits Page
Private Sub Page_Load(Sender as Object, e as System.EventArgs) Handles
MyBase.Load
'Do code here that should happen on ALL pages
End Sub
End Class
Public Class ABCCustomerSelect : Inherits ABCBasePage
Private Sub Page_Load(Sender as Object, e as System.EventArgs) Handles
MyBase.Load
'Do code here that should happen ABCCustomerSelect only
End Sub
End Class
Public Class ABCPocketSelect : Inherits ABCBasePage
Private Sub Page_Load(Sender as Object, e as System.EventArgs) Handles
MyBase.Load
'Do code here that should happen ABCPocketSelect only
End Sub
End Class
Thanks for any help.
Joe
I have a base class from which all of my pages derive (ABCBasePage). For
example, ABCCustomerSelect Inherits ABCPasePage. I would now like to have
ABCPocketSelect which should inherit from ABCCustomerSelect. My problem is
that when ABCPocketSelect is loaded the Page_Load event in ABCBasePage is
called, followed by the load event for ABCCustomerSelect - and I would like
to skip the ABCCustomerSelect load event..
My basic code is as follows:
Public Class ABCBasePage : Inherits Page
Private Sub Page_Load(Sender as Object, e as System.EventArgs) Handles
MyBase.Load
'Do code here that should happen on ALL pages
End Sub
End Class
Public Class ABCCustomerSelect : Inherits ABCBasePage
Private Sub Page_Load(Sender as Object, e as System.EventArgs) Handles
MyBase.Load
'Do code here that should happen ABCCustomerSelect only
End Sub
End Class
Public Class ABCPocketSelect : Inherits ABCBasePage
Private Sub Page_Load(Sender as Object, e as System.EventArgs) Handles
MyBase.Load
'Do code here that should happen ABCPocketSelect only
End Sub
End Class
Thanks for any help.
Joe