title: ASP button reloading page?
body: <p>I have this code on an aspx page:</p>
  
  <pre><code>&lt;div id="bloc1"&gt;
      Hey you
  &lt;/div&gt;
  
  &lt;asp:Button ID="Button2" runat="server" Text="Button" onclick="Button2_Click" OnClientClick="change_page()" /&gt;
  &lt;input id="Button1" type="button" value="button" onclick="change_page()" /&gt;
  
  &lt;div id="bloc2" style="display:none"&gt;
      Hey me
  &lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
      function change_page() {
          document.getElementById("bloc2").style.display = "block";
          document.getElementById("bloc1").style.display = "none";
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>When I click on the HTML button, my script works well: Bloc1 disappears and Bloc2 appears.</p>
  
  <p>When I click on the ASP button, Bloc1 disappears and Bloc2 appears very quickly and Bloc2 disappears and Bloc1 re-appears (so back to the beginning) as if the page was reloaded.</p>
  
  <p>Behind code does something:</p>
  
  <pre><code>    protected void Button2_Click(object sender, EventArgs e)
      {
          this.Button2.Text = "new Button";
      }
  </code></pre>
  
  <p>How can I manage to do like the HTML button, but with the behind code function?</p>
  
  <p>PS: I don't want to use UpdatePanel and ScriptManager.</p>