title: How do generically handle mvc.net ajax errors
body: <p>My mvc.net website uses ajax pretty extensively. Up until now I have been handling ajax errors on an individual basis, but for the most part I am always doing the same thing.</p>
  
  <p>For jquery ajax calls, I am setting the ajaxSetup error configuration so that it does what I want it to do. Unfortunately that doesn't seem to do much when I am using an ActionLink or ajax form with razor. For those, I have to set the AjaxOptions for OnFailure to some javascript method.</p>
  
  <p>While I could just point them all to the same method, I would like to be able to do this without having to explicitly set the AjaxOptions. Is there a way to make it so that all mvc.net ajax calls use the same event handlers (unless overridden), similar to how jquery allows you to do it?</p>
  
  <p>I am sure this question has been asked before but I haven't seen any good solutions.</p>