title: How to send javascript var in Html beginform in MVC3
body: <p>I am trying to send a JS variable using html beginform to controller action. Eg: </p>
  
  <pre><code>@using (Html.BeginForm("Index", "Contrl1", new { SPName = myJSVarcomeshere }, FormMethod.Post))
  { 
      &lt;button id="plot" type="submit" class="btn" &gt; Plot &lt;/button&gt;
  }
  </code></pre>
  
  <p>Currently the problem is the JS var is not in scope. Can I use a hidden field to achieve this  </p>