title: LinkButton needs to work like the Button of the Progress bar
body: <p>I have two forms - form1 and form2. Both the forms are a part of the progress bar. Form1 has a Next button. I need to perform 2 functions on the click of the Next button - One is to save all the data in form1 and the second is to move to form2. For the first function, I have a linkButton and for the second functtion, I have a button. But I need to merge these two functions in 1 button. How to do that?
  asp code -</p>
  
  <pre><code>    &lt;button type="button" class="btn btn-next" style="margin-right: 300px;"&gt;Next
      &lt;asp:LinkButton ID="LinkButton1" runat="server" class="btn btn-next" Text="Next" OnClick="FirstDataCapture" /&gt;
      &lt;/button&gt;
  </code></pre>
  
  <p>c# code - </p>
  
  <pre><code>    protected void FirstDataCapture(object sender, EventArgs e)         
      {}
  </code></pre>
  
  <p>But when I am coming out of the FirstDataCapture function, the form 2 is going back to form1</p>