title: How to access a parent element from iframe using c#?
body: <p>I am working on a website in <code>asp.Net</code>, and i am using <code>iframe</code> to load a separate page.
  The separate page named <code>Districting.aspx</code>, includes an <code>asp button</code>, which <code>onClick()</code>, calls a function in c#, named <code>DoneClicked()</code>.
  This is the asp button control:</p>
  
  <pre><code>&lt;asp:Button ID="LinkButtonDone" CssClass="button button-yellow" runat="server" OnClick="DoneClicked" Text="Done" /&gt;
  </code></pre>
  
  <p>In code behind, the DoneClicked function:</p>
  
  <pre><code>protected void Doneclicked(object sender, EventArgs e)
      {
          // Some code here
          // Calling a function from Default page
      }
  </code></pre>
  
  <p>What I need to do is at the end of <code>DoneClicked</code> function, a function from the <code>Default.aspx</code> page must be called.</p>
  
  <p>So how can I access a function from <code>Default.aspx.cs</code> in the iframe page code behind?</p>
  
  <p>Thanks:) </p>