title: Hiding a parent modal popup in VB.NET / ASP / Ajax
body: <p>I have a modal popup extender on a parent form (called from a child aspx is in an iFrame). I'm able to show it by calling</p>
  
  <pre><code>parent.ShowModal();
  </code></pre>
  
  <p>Which is a javascript function on the parent page that executes $find('ModalPopupExtender1').show();</p>
  
  <p>It works great. But now I've discovered a new problem.</p>
  
  <p>After the VB code-behind is finished executing on the child page, I'd really like to hide that modal form. Don't get me wrong, I have nothing against modal popups. I rather like them in fact. It's just that my users would like it better if they could continue working after the VB code-behind (child page) is finished executing. I tried</p>
  
  <pre><code>ParentForm.ModalPopupExtender1.Hide()
  Top.ModalPopupExtender1.Hide
  </code></pre>
  
  <p>But I haven't had any luck.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thanks,</p>
  
  <p>Jason</p>