title: How to work with the two form tags in asp.net
body: <p>In my aspx page I have a first name, last name <code>text boxes</code>, submit <code>button</code> in my form tag. And the form action set to an external <code>url</code> of my company registration form.</p>
  
  <p>The form is as below.</p>
  
  <pre><code>  &lt;form method="post" action="mycompanyurl"&gt;
                      &lt;label&gt;First Name:&lt;/label&gt;
                      &lt;input name="first_name" /&gt;
                     &lt;label&gt;Last Name:&lt;/label&gt;
                      &lt;input name="last_name" /&gt;
    &lt;/form&gt;
  </code></pre>
  
  <p>Now I want to do some server side validations in my aspx.cs file and save data in my local db without affecting the action, that is redirecting to the url.</p>
  
  <p>That is to do validations and redirection.</p>
  
  <p>For this I have taken another form tag and set action to the aspx page</p>
  
  <pre><code>&lt;form method="post" action="Default.aspx"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>But when I click on the submit it is redirecting to mycompany registration page but no action to my aspx page.</p>
  
  <p>Help me to achieve this</p>