title: ASP.NET MVC: Ajax.Actionlink Does not work with parameters
body: <pre><code>        &lt;%= Ajax.ActionLink("DrillDown", "EventOverzichtAjax", new { GroepID = Model.GroepID.ToString(), 
                                                                      groepType = Model.GroepType.ToString(), 
                                                                      manager = Model.isManager }, 
                                                              new AjaxOptions { UpdateTargetId = Model.GroepID.ToString(),
                                                                                OnBegin = string.Format("beginOverzichtFetch('{0}')", Model.GroepID),
                                                                                OnComplete = string.Format("completeOverzichtFetch('{0}')", Model.GroepID)}) %&gt;
  </code></pre>
  
  <p>I'm having some issues with the onBegin and onComplate properties.
  They work perfectly as i want. But they do not when i'm trying to pass a parameter with the function.</p>
  
  <p>For example:</p>
  
  <pre><code>   OnBegin = "beginOverzichtFetch"
  </code></pre>
  
  <p>Works perfectly. But</p>
  
  <pre><code>  OnBegin = "beginOverzichtFetch(1)"
  </code></pre>
  
  <p>Does not work at all. When i use chrome inspector to see where the fault occurs:
  <a href="https://i.stack.imgur.com/Oi8ak.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Oi8ak.png" alt="alt text"></a>
  </p>
  
  <p>What happens when my link:
  Nothing gets updated but i get redirect to the partial view.</p>
  
  <p>Anyone knows how to pass parameters to functions in the onBegin property?</p>
  
  <p>Help would be appreciated! Thanks!</p>