I have a master page that has a usercotnrol on it. There is another page that uses the masterpage. On the masterpage i have a usercotnrol, let's say its id is header. I have my page using the <%@ MasterType VirtualPath="~/MasterPages/TheMasterPage.master" %> directive.
I have tried creating a readonly property that returns the usercontrol, but I cannot access any of the usercontrols public properties.
Also, from the aspx page I cannot access the usercontrols namespace. I can from the master page an think it is because I have inhertited from the web.page.ui class? Anyway, here is an example of how my codebehinds look in pseudo code :
Partial Class TheMasterPage
Public Readonly Property SSTheUserControl as SS.UserControls.TheUserControl&.
Public Class TheUserControl
Public Property Property1 as string&.
Public Property Property2 as string&.
The ASPX Page
Partial Class Index
So, what is the best way for me to access the userControl and any public properties? Thanks to all who look at this.