Hey Everyone,
I am tring to access a custom property on my Master page in a custom PageBase that resides in the App_Code folder. I can get this to work no problem in a web app but im having trouble doing it in the website project.
PageBase:
public abstract class PageBase : ClientSidePageBase
{
public WebMessage Message
{
get
{
if (this.Master is MainMaster)
return ((MainMaster)this.Master).Message;
else if (this.Master is PopupMaster)
return ((PopupMaster)this.Master).Message;
else
return null;
}
}
}
The above sample is what is in my web application and works fine but if i try and put this in the App_Code it doesnt pick up the MasterPage class so I cant access the property.
Any ideas? Hopefully its something easy i am over looking.