title: One button for two function in asp.net
body: <p>I have this one button call btnSave</p>
  
  <pre><code>  &lt;button id="btnSave" runat="server" class="btn btn-primary" onserverclick="btnSave_ServerClick"&gt;Save&lt;/button&gt;
  </code></pre>
  
  <p>Behind code rite now for save function:</p>
  
  <pre><code>  Protected Sub btnSave_ServerClick(sender As Object, e As EventArgs)
  -- more coding here --
      End Sub
  </code></pre>
  
  <p>I want to use this button for Save or Update the form.</p>
  
  <p>How to make it happen?</p>