Call master page function from user control?
<p>After searching Google I found one way to call a master page function from a user control: </p>

<ol>
<li>Create an interface that includes your method.</li>
<li>Implement the interface in your master page</li>
<li>From your control, reference this.Page.Master via the interface type.</li>
<li>Call your method.</li>
</ol>

<p>This is a good approach, but I don't know that can I call a master page static function in this way.</p>

<p><strong>Another approach is :</strong></p>

<pre><code>// this is also good.
((MyMaster)this.Page.Master).MyFunction(); 
</code></pre>

<p>But I heard that this can also be done through an event. </p>

<p>1) Could someone show me how I could call a master page function from a user control through an event?
2) Also, how can I call a master page static function through a common interface way which I explained above.</p>
