title: ASP.NET Calling a Method in (ASPX) From a UserControl (ASCX)?
body: <p>got an <code>Default.aspx</code></p>
  
  <p>its Codebehind has a Method: <code>public void DoSomething(){}</code></p>
  
  <p>The <code>Default.aspx</code> has got a <code>UserControl.ascx</code></p>
  
  <p>In the Codebehind of my <code>UserControl.ascx</code> I would like to call my <code>DoSomething()</code> from <code>Default.aspx</code>, but this doesn't works:</p>
  
  <pre><code>Default defaultPage = new Default();
  defaultPage.DoSomething();
  </code></pre>
  
  <p>How can I achieve this? 
  (<code>Default.aspx</code> is also the StartupPage of the Masterpage)</p>