W
Winista
Only the implementation code.
You only need to inherit from the code-behind which is where the page
declaration exists.
I am using this in a couple of my projects to provide static methods to
all pages.
public class BasePage : System.Web.UI.Page { }
* Winista said:Only the implementation code.
Mr said:So I could just put common code in App_Code instead and this would offer
me the same functionality if I was only dealing with static methods. If
I want to modify certain behaviour of the page then it would make sense
to create my own subclass.
PeterKellner said:You may be looking for usercontrols to get a similar feel to
inheritance fo the aspx file.
Peter Kellner
http://peterkellner.net
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.