title: opening a popup window on click of a button which is in a user control
body: <p>I am trying to open a window on click of a button that is inside a user control my user control, but the window is not opening when i click on the button the button simply disapears and the page hangs. can anybody help me please.</p>
  
  <p>my code is like this</p>
  
  <pre><code>           &lt;asp:TableCell&gt;
             &lt;asp:ButtonID="btnSearch"Text="Search"OnClientClick="open();"runat="server"/&gt;
      &lt;/asp:TableCell&gt;
  
    &lt;script type = "text/javascript&gt;
       function open() {
      window.open("OnPopUp.aspx");
      return true;
       }
      &lt;/script&gt;
  </code></pre>