title: How to invoke a controller method after a checkbox gets clicked?
body: <p>Is it possible to make <code>CheckBox</code> invoke a controller method on click just like it does <code>ActionLink</code>? Basically, I want to replace this <code>ActionLink</code>:</p>
  
  <pre><code>@Html.ActionLink("Switch status", "SwitchTaskIsComplete", "Task", new {
      taskId = task.TaskId, 
      isComplete = !task.IsComplete, 
      userId = Model.UserId
  }, null)
  </code></pre>
  
  <p>with a <code>@Html.CheckBox</code>, which invokes the same method </p>
  
  <pre><code>SwitchTasksIsComplete(int taskId, bool isComplete, int userId)
  </code></pre>
  
  <p>of <code>TaskController</code> and uses its <code>checked</code> property as <code>isComplete</code> parameter every time it gets clicked.</p>