By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,312 Members | 1,323 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,312 IT Pros & Developers. It's quick & easy.

inherit from my custom page

P: n/a
I've created a custom Page class (which in turn inehrts from Page class).
This class has some generic code which i'd like to include into every page.

At the moment, I keep modifying the pages and changing the Inherits line to
inherit from my page class.
But I'm sure there should be an easier way.

From what i know master pages applies only to the UI, but not the base page
class it self.
How can i achieve my requirement with the least amount of work.

I.e. when ever i create a new web page, I'd like it to inherit from my
custom page class.
Aug 26 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
hi LeAnne,
take a look at the pageBaseType setting in web.config. it is an attribute of
the Pages setting.
http://msdn2.microsoft.com/en-us/library/950xf363.aspx

<system.web>
<pages pageBaseType="MyWeb.UI.MyPageBase" />tim

------------------------------------------
blog: http://tim.mackey.ie
Aug 26 '06 #2

P: n/a
thanks
"Tim_Mac" <ti********@community.nospamwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
hi LeAnne,
take a look at the pageBaseType setting in web.config. it is an attribute
of the Pages setting.
http://msdn2.microsoft.com/en-us/library/950xf363.aspx

<system.web>
<pages pageBaseType="MyWeb.UI.MyPageBase" />tim

------------------------------------------
blog: http://tim.mackey.ie

Aug 26 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.