title: ASP.Net: Control MainPage from iframe in ModalPopupExtander
body: <p>I have a page "Default.aspx".
  In this page is a ModalPopupControl with an iFrame:</p>
  
  <pre><code> &lt;div style="float: right; margin-right: 10px; margin-top: 8px;"&gt;
                          &lt;asp:Button ID="btnSearchGo" runat="server" Text="Jetzt suchen" OnClick="btnSearchGo_Click" /&gt;
                      &lt;/div&gt;
                      &lt;asp:ModalPopupExtender BackgroundCssClass="ModalPopupBG" OkControlID="linkClosestartSeach"
                          PopupDragHandleControlID="PopupHeader" ID="mpeMiniSearch" runat="server" TargetControlID="linkFooterImpressum"
                          PopupControlID="panMiniSearch"&gt;
                      &lt;/asp:ModalPopupExtender&gt;
                      &lt;asp:Panel Style="display: none" ID="panMiniSearch" runat="server"&gt;
                          &lt;div class="HellowWorldPopup"&gt;
                              &lt;div class="PopupHeader" id="Div10"&gt;
                                  Suche&lt;/div&gt;
                              &lt;div class="PopupBody"&gt;
                                  &lt;iframe id="iFrameMiniSearch" runat="server" src="MiniSearch.aspx" class="iFramePopUp"&gt;
                                  &lt;/iframe&gt;
                              &lt;/div&gt;
                              &lt;div class="popupFooter"&gt;
                                  &lt;asp:LinkButton Text="Schließen" class="linkPupopClose" runat="server" ID="linkClosestartSeach"&gt;&lt;/asp:LinkButton&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/asp:Panel&gt;
  
  
  
   protected void btnSearchGo_Click(object sender, EventArgs e)
      {
          iFrameMiniSearch.Attributes["src"] = "MiniSearch.aspx";
     //Do More
          mpeMiniSearch.Show();
      }
  </code></pre>
  
  <p>Now I have a LinkButton in the iFrame that should close the MPE and redirect the Page Default.aspx to Register.aspx.</p>
  
  <p>Any Idea how to do?</p>