"Charlie" <Ch*****@discus sions.microsoft .comwrote in message
news:B5******** *************** ***********@mic rosoft.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.thePr opertyIwant
or
this.Parent.the PropertyIwant
or
this.PageBase.t hePropertyIwant
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...