Accessing Page properties from Base User Control which gets extened by all user controls
<p>I have a Page with few web user controls in it</p>

<p>Page does the following , it extends Icode interface</p>

<pre><code> public partial class TestPage: System.Web.UI.Page, ICode
</code></pre>

<p>// it implements Code implementation here</p>

<pre><code>public string Code
        {
            get
            {
                return "sample code";
            }
        }
</code></pre>

<p>One of the control is as below</p>

<p>I am able to access the Code value from this sample control</p>

<pre><code>sampleControl:BaseControl

// here I am able to access the page property's

            if (Page is ICode)
            {
                string test= ((ICode))Page).Code;
            }
</code></pre>

<p>Now i want to access the same value from BaseControl, as baseControl is getting executed before the page
i am unable to set the values in the base control.</p>

<pre><code>BaseControl: System.Web.UI.UserControl
{
   // how can i access those values here.
}
</code></pre>

<p>if i can set the values in the base control, all controls can acess that value</p>

<p>any help will be appreciated</p>
