Similar to my last post, I have a website that houses many other projects, mainly layers (data access, configuration, etc.). I have a Base Class project that all my web pages inherit from (ASIBasePage) and I'd like to access controls on the Master Page and change them from this BasePage class. I can do this from the inherited page (index.aspx) like so:
((
scMaster)this.Master).TitleName = " Welcome " + SiteData.UserInformation.Instance.Title + " " + SiteData.UserInformation.Instance.FirstName + " " +
SiteData.UserInformation.Instance.LastName;
((
scMaster)this.Master).LogoURL = "~/images/logos/" + SiteData.Customer.Instance.CustomerCode + "_logo.jpg";
But I have since moved this code to my ASIBasePage project in the overrideable method OnLoad. Now I know it's not going to work because it can't locate the scMaster page, but does anyone know how I can accomplish this?