Hi Folks
I have a master page which inherits my own base class : "public class common", in common.vb, and the common class Inherits System.Web.UI.MasterPage. Common creates a couple of extra public props, variables etc which can be utilised from the master page.
Now thats working great. The extra properties and backend server connection in the common class are accessible from the master page and, with the help of the MasterType directive, are also accessible from the child aspx page.
But to make this even better I wanted to change each child page to be based on a "base class" so the server variables on the Master page are available without putting code on each child page. So I created a base class "public class commonpage", which inherits System.Web.UI.Page. BUT the problem is that this class does not recognise the additional props and variables exposed in the master page. What do I need to inherit to make the extra props and variabels in common.vb accessible to the child page ?
In essence I think I'm asking the same questions as : "what does the @mastertype directive do behind the scenes?"
thanks