custom base classes

  • Thread starter Thread starter hansiman
  • Start date Start date
H

hansiman

I have a site with two user types (user and admin)

I'd like to add some code to one master base page (BasePageMater), and
one user base page (BasePageUser) and one admin base page
(BasePageUser).

BasePageMaster inherits System.Web.UI.Page
BasePageUser and BasePageAdmin inhertis BasePageMaster.
All webform inherits either BasePageUser or BasePageAdmin.

Is it necessary to call the following code on every BasePage?

Protected Overrides Sub OnLoad(ByVal e As EventArgs)

'call base class's OnLoad method!
MyBase.OnLoad(e)
End Sub

/M
 
Is it necessary to call the following code on every BasePage?

Only if you want the code to run.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 
Back
Top