"Charlie" <Ch*****@discussions.microsoft.comwrote in message
news:B5**********************************@microsof t.com...
>I have some code in a basePage class
public class PageBase : Page {}
that I would like to access from a Master Page.
On the Master Page I would like to code something like
this.Page.thePropertyIwant
or
this.Parent.thePropertyIwant
or
this.PageBase.thePropertyIwant
but I cant find the correct syntax
Any ideas?
The code behind an aspx page is just a class like any other class...
However, the code behind an aspx page is really intended solely for that
page... If you have code in an aspx page's partial class which you need
outside that page, you should really consider moving it into a separate
class...