Accessing Events And Members In The Master Page
<p>I have an event in the Master page that I want to access in the pages that use that master page but it doesn't seem to be working. </p>

<p>In the Master</p>

<pre><code>public delegate void NotifyRequest(object sender, EventArgs e);
public class MyMaster
{
   public event NotifyRequest NewRequest;
   protected void uiBtnNewTask_Click(object sender, EventArgs e)
   { 
      if(NewRequest!= null)
         NewRequest(this, e)
   }
}
</code></pre>

<p>Inherited Page</p>

<pre><code>MyMaster mm = new MyyMaster();
mm.NewRequest += new NotifyRequest(mm_NotifyRequest);
void mm_NotifyRequest(object sender, EventArgs e)
{
    Label1.Text = "Wow";
    this.Label1.Visible = true;
}
</code></pre>

<p>My problem is the event is always null. Any ideas?</p>
