title: Stop page reload of an ASP.NET button
body: <p>NET application, I have inserted a button that call a Javascript function (<code>OnClientClick</code> event) and a VB.NET function (<code>OnClick</code> event)</p>
  
  <pre><code>&lt;asp:Button OnClientClick="jsfunction() " OnClick="vbfunction" Text="Submit" runat="server" /&gt;
  </code></pre>
  
  <p>The problem is that when I click the button, it refreshes the page and delete the content of the text boxes.</p>
  
  <p>I have tried with inserting <code>return false;</code> on the <code>OnClienClick</code> event, but it doesn't execute the OnClick Event.</p>
  
  <p>How can I avoid the page reload ?</p>
  
  <p>P.S.: At the end of the Javascript function a new window is opened <code>window.open(newWindow.aspx)</code>, but I want that the first page mantain the value inserted by the user in the Text Boxes.</p>
  
  <p>Thanks in advance :)</p>