title: asp.net MVC 4 multiple post via different forms
body: <p>Right now I understand </p>
  
  <pre><code>if (IsPost){   //do stuff }
  </code></pre>
  
  <p>checks all post methods on that page. However, I have 2 different forms posting 2 different information. These are a login form and a register form.</p>
  
  <p>Is there a way I can check IsPost based on which form? For example,</p>
  
  <pre><code>if(Login.IsPost){ //do stuff }
  </code></pre>
  
  <p>but how would I define the Login variable? My form looks like:</p>
  
  <pre><code>&lt;form id="Login" method = "POST"&gt;
  </code></pre>
  
  <p>I have tried:</p>
  
  <pre><code>var Login = Form.["Login"]
  </code></pre>
  
  <p>it did not work.</p>
  
  <p>I will appreciate any help.</p>
  
  <p>Thanks.</p>