custom base classes

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
 
K

Kevin Spencer

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top