title: Page is getting refreshed in web form .aspx file while clicking on button?
body: <p>I have created a webform file with login.aspx. But when i am clicking on the button the page is getting refreshed and the javascript function is getting called instead what i want is that after clicking on the button the page should not get refreshed and should be able to invoke the javascript function?</p>
  
  <pre><code>  &lt;html&gt;
    &lt;body&gt;
    &lt;form runat="server"&gt;
    &lt;button id="formsubmission" onclick="myfunction()"&gt; GetData &lt;/button&gt;
    &lt;/form&gt;
    &lt;/body&gt;
    &lt;/html&gt;
  </code></pre>