title: Ajax.BeginForm Bug in MVC2?? Ajax for Posting to Wrong Controller?
body: <p>I am using an ajax form trying to post back the the CustomerController using the Create method.  Here is the code</p>
  
  <pre><code>&lt;% using (Ajax.BeginForm("Create", "Customer", new AjaxOptions { LoadingElementId = "saving"}, new { @class = "block_content form" }))
          {%&gt;...
  </code></pre>
  
  <p>When my html form renders the form looks like this</p>
  
  <pre><code>&lt;form onsubmit="Sys.Mvc.AsyncForm.handleSubmit(this, new Sys.UI.DomEvent(event), { insertionMode: Sys.Mvc.InsertionMode.replace, loadingElementId: 'saving', onComplete: Function.createDelegate(this, $j('#accoutcreate').dialog('close')) });" onclick="Sys.Mvc.AsyncForm.handleClick(this, new Sys.UI.DomEvent(event));" method="post" class="block_content form" action="/Job/Create?Length=3"&gt; ...
  </code></pre>
  
  <p>As you can see the form is actually being posted to /Job/Create instead of /Customer/Create</p>
  
  <p>I am not sure why this is happening.  Any ideas?</p>